deadtrickster / prometheus_rabbitmq_exporter

Prometheus.io exporter as a RabbitMQ Managment Plugin plugin
MIT License
292 stars 72 forks source link

Examples #6

Closed uschtwill closed 8 years ago

uschtwill commented 8 years ago

So, by default at /api/metrics/I see a very limited number of metrics, all describing the state of the system in VERY technical terms. Surely I can access metrics like message count per queue and such as well?

Looking at this I am pretty confident I should be able to do that, but I can't for the life of me figure out how!

Could you add an example or two to the readme?

deadtrickster commented 8 years ago

Hey!

You want to add more metrics?

uschtwill commented 8 years ago

Yes. :)

deadtrickster commented 8 years ago

This can be quite tricky actually, What you see in the document you linked is the description of the HTTP interface. Since this collector is more low-lever the usual process for adding a metric is to reverse back from http endpoint of RabbitMQ management plugin to statistics models internals. You can find how I'm doing this in the code.

Now the question is what you really need and how. Lets start by figuring out what additional metrics you actually want. Also bear in mind you don't need *_rate metrics. Prometheus can calculate them for you.

uschtwill commented 8 years ago

Alright, I now just ended up using https://github.com/kbudde/rabbitmq_exporter, which achieves my purpose quite alright. Thanks though!

deadtrickster commented 8 years ago

Cool! While my exporter may lag behind in terms of metrics variety (I'm concentrated now on Erlang prometheus client itself) it also exports Eralng VM metrics. Anyway, glad you found what works for you.