Closed uschtwill closed 8 years ago
Hey!
You want to add more metrics?
Yes. :)
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.
Alright, I now just ended up using https://github.com/kbudde/rabbitmq_exporter, which achieves my purpose quite alright. Thanks though!
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.
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 likemessage 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?