stagemonitor / stagemonitor-mailinglist

GitHub issues abused as a mailing list
3 stars 0 forks source link

Prometheus or JMX exporter/exposer #20

Open LarsMilland opened 8 years ago

LarsMilland commented 8 years ago

Hi

I am trying to use Stagemonitor in the context of the Kubernetes based OpenShift cloud platform from RedHat where the integrated metrics collecting platform is based on Prometheus so I was trying to use a "JMX to Prometheus" exporter that would expose the JMX based metrics from Stagemonitor(via the underlying Codahale metrics), but have a little problem to actually see other metrics exposed via JMX than the internal ones such as "internal.transform.javassist.", "jvm." and such. I am missing the metrics from Stagemonitors own configurations such as the servletrequests. This has been tried out on version 0.19.2 where no metrics at all gets exported to JMX and on version 0.18.1 where it only exports the internal ones.

Any suggestions? Or if You have another way to expose the Stagemonitor metrics to Prometheus I would be take that advice also.

The console exporter is also not printing out anything regardless of which timer I set on it.

This is done on a Spring Boot application run on a JDK 8 JVM with an embedded Tomcat Servlet engine, and otherwise the rest of the Stagemonitor functionality is working just fine.

Best regards Lars Milland

felixbarny commented 8 years ago

The JMX reporter should be fixed with https://github.com/stagemonitor/stagemonitor/pull/120. But implementing a direct reporter to prometheus with it's java client or the plain text protocol wouldn't be that hard as well. Are you interested in implementing that?