OpenTSDB exporter?

207 views
Skip to first unread message

mbos...@cloudflare.com

unread,
Apr 18, 2017, 7:38:32 AM4/18/17
to Prometheus Users
Hello,

Does anyone know of an OpenTSDB exporter (for exporting metrics about OpenTSDB itself)?

Searching doesn't return any results, but I wondered if anyone has written one but hadn't got round to open sourcing it.

Thanks,
Matt

Matthias Rampke

unread,
Apr 19, 2017, 4:29:51 AM4/19/17
to mbos...@cloudflare.com, Prometheus Users
Somehow this is really hard to google but since OpenTSDB is in Java, does it itself export metrics via JMX? In that case, the JMX exporter[0] should be what you need.


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e5849269-545f-4ba7-b5ca-cb96cd0eb82f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt Bostock

unread,
Apr 19, 2017, 4:34:55 AM4/19/17
to Matthias Rampke, Prometheus Users
I haven't found any useful mention of JMX in the OpenTSDB codebase or docs, though I'm not very familiar with JMX so I may be missing a trick.

OpenTSDB has a good API for exposing stats as JSON so I think I'll use that to write an exporter.
--
--
Matt Bostock
Site Reliability Engineer

pedro....@blip.pt

unread,
Apr 19, 2017, 6:18:04 AM4/19/17
to Prometheus Users, m...@soundcloud.com, mbos...@cloudflare.com
We collect OpenTSDB stats through the telnet endpoint - e.g. `echo "stats" | nc <tsdb_host> 4242`. This of course produces OpenTSDB-style metrics which then need to be converted to the Prometheus format.

Unfortunately, we're not in a position to open-source our exporter yet. Sorry I couldn't be of more help.

--
Pedro Araujo
SRE

mbos...@cloudflare.com

unread,
May 8, 2017, 5:14:28 AM5/8/17
to Prometheus Users, m...@soundcloud.com, mbos...@cloudflare.com
No worries, thanks Pedro.

I wrote a new exporter and have open-sourced it:

It's quite basic, any comments, contributions or suggestions welcome.

Thanks,
Matt

J- Zeng

unread,
Mar 5, 2020, 9:32:29 PM3/5/20
to Prometheus Users

HI,When I use this exporter to monitor opentsdb, how should I specify the URL of opentsdb? I can't find the parameters

在 2017年5月8日星期一 UTC+8下午5:14:28,mbos...@cloudflare.com写道:
Reply all
Reply to author
Forward
0 new messages