GitHub user hai-ben added a comment to the discussion: Prometheus Broker Plugin 
for Apache ActiveMQ

Thanks all for the responses.

To answer explicitly @mattrpav:
1. This would replace the need for a Prometheus agent for polled metrics.
2. I misunderstood the scope of @jbonofre's OTel work. This would be orthogonal 
to it.
3. This adds no deps, would be optional, and _should_ be very light weight 
(<200 lines).
4. Because of the size and integration layer, it feels like it should be in the 
main repo (which would also allow the [K8 Helm 
setup](https://github.com/apache/activemq/pull/1761) to ship with 
`metrics.enabled` without any deps 😉)


A little more, detail on how it would work:

- A small optional servlet runs on the Jetty server, inheriting the console's 
auth.
- It vends a basic predetermined set of broker metrics in the Prometheus format 
on the `/metrics` path.
- It accepts GET requests only, it reads some MBeans (again predetermined), and 
vends the results with intelligible and stable names.
- In contrast to Jolokia, this is a read-only, fixed-output text renderer. It 
never handles a custom MBean request, so it doesn't need an MBean execution or 
write path.

Would be happy to put up an example PR if there's interest.

GitHub link: 
https://github.com/apache/activemq/discussions/2226#discussioncomment-17741003

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to