Prometheus plugin: :15692/metrics/per-object endpoint gives "Unknown Registry"

862 views
Skip to first unread message

thoma...@gmail.com

unread,
Sep 7, 2021, 3:22:40 AM9/7/21
to rabbitmq-users
Hello fellow RabbitMQ users,

We are working on getting Prometheus plugin up and running, and encountered the following issue (RabbitMQ 3.8.9 and Erlang 23.1.1):
Scraping the ":15692/metrics" endpoint works well, but when giving the per-object endpoint ":15692/metrics/per-object" I get the following:
$ curl -v -H "Accept:text/plain" "http://localhost:15692/metrics/per-object/"
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 15692 (#0)
> GET /metrics/per-object/ HTTP/1.1
> Host: localhost:15692
> User-Agent: curl/7.45.0
> Accept:text/plain
>
< HTTP/1.1 404 Not Found
< content-length: 16
< content-type: text/plain
< date: Mon, 06 Sep 2021 09:38:55 GMT
< server: Cowboy
<
* Connection #0 to host localhost left intact
Unknown Registry

Has anyone seen this? I can get per-object metrics if I set  "rabbitmqctl eval 'application:set_env(rabbitmq_prometheus, return_per_object_metrics, true)."

Best Regards,

Thomas Oliw


Michal Kuratczyk

unread,
Sep 7, 2021, 4:14:12 AM9/7/21
to rabbitm...@googlegroups.com
Hi,


Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/f4aa81bc-ae16-44b6-87b9-fc06fc4f22ecn%40googlegroups.com.


--
Michał
RabbitMQ team

thoma...@gmail.com

unread,
Sep 7, 2021, 7:10:26 AM9/7/21
to rabbitmq-users
Hi Michal,

Well, that explains it!

Thank you!

Kind Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages