ActiveMQ exporter or RSS exporter

510 views
Skip to first unread message

petel...@googlemail.com

unread,
Feb 19, 2018, 6:38:24 PM2/19/18
to Prometheus Users
Hey guys.

Here is my challenge. I want to banish Nagios to the scrap heap however one alert I’ve not been able to replicate In Prometheus is for number of messages in an ActiveMQ implementation I have that is flakey at best and rely heavily on alerting.

Nagios has an ActiveMQ plugin and works quite well.

ActiveMQ also has an atom / RSS feed.

I’m wondering what options I have for getting some metrics into Prometheus with either exposing native ActiveMQ or via Scraping RSS feeds.

Cheers

Pete

Cheers

petel...@googlemail.com

unread,
Feb 20, 2018, 7:40:08 PM2/20/18
to Prometheus Users
I have a cunning plan for this.

I plan to convert the xml output to JSON using powershell via scheduled task on the machine running ActiveMQ and copy to a web server instance then use a json exporter to pull the values.

In theory this should work. I will report back progress for others.

Matthias Rampke

unread,
Feb 21, 2018, 4:48:12 AM2/21/18
to petel...@googlemail.com, Prometheus Users
copy to a web server instance then use a json exporter

An alternative to that is to use the textfile collector of a node_exporter running on the same instance – you need to produce something like Prometheus metric format but you can save the need to copy anything off the machine (in effect, node exporter takes the role of a metrics-format-aware web server).

Is it safe to request the XML frequently? In that case, you could also consider just writing the exporter – build on this example[0] but parse XML instead of JSON (or use your favourite language).

/MR


--
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/57ee10a4-67d7-40c0-a133-fea19c6cacb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

petel...@googlemail.com

unread,
Feb 22, 2018, 3:30:42 PM2/22/18
to Prometheus Users

Hi thanks for the reply. Yes the xml is safe to hit regularly. Unfortunately I don’t have enough knowledge yet to be able create my own exporter or the time as it stands.
Reply all
Reply to author
Forward
0 new messages