I've been involved in a very minor way in the Prometheus project early on via contributing the JMH microbenchmarks to the Java client project previously via @BrianBrazil.
The new agent library can be found here https://github.com/willfleury/prometheus-metrics-agent
The above is a specialisation of another more general agent library I wrote for metrics which supports systems other than Prometheus. I know Brian Brazil which is why I wrote the specialisation and contributed it. Its main features are
- injects the metric bytecode as if hand crafted
- configuration driven instrumentation
- annotation driven instrumentation
- dynamic label values based on method stack variables
- supports any language that runs on the JVM
If anyone wishes to fork it and maintain it etc, please do so. Its pretty well documented as it is, but I will not have enough free time to answer questions & bug fixes in a timely manner. I would happily help anyone getting started with it and improve documentation where necessary to ensure it was easy for others to take over.
I've used the original agent library on various projects, Dropwizard microservices in particular but I know there are users who have used it with Tomcat applications also.
- Tomcat (Servlet, JSP, Jersey)
- Dropwizard (Jersey)
- Hibernate
It is very easy to add new projects. The hibernate one in particular is an example of how you can replace the maintenance burden of projects such as the simpleclient_hibernate module currently maintained and support multiple versions with ease.
Checkout the examples at https://github.com/willfleury/prometheus-metrics-agent#examples