Open groldan opened 2 years ago
At Camptocamp in the geOrchestra team we are mainly using an external Collectd which gathers metrics from the JVMs using a JMX endpoint, and exposes them later on as a Prometheus exporter (see https://collectd.org/wiki/index.php/Plugin:Write_Prometheus). Jetty comes with a convenient module which exposes some interesting metrics (http responses per status code, that you can derive to get a rate, ...) and adding extra ones is pretty easy using the dropwizard java library.
There are some other strategies based on JMX though, I think that our sysadmin are using a Java agent that acts as a prometheus exporter, so basically doing the same thing as described previously, but bypassing the collectd step.
Maybe spring boot / cloud offers a better approach than the previously mentioned ones, like a prometheus endpoint.
Vanilla GeoServer has the Monitoring extension
I don't know much about it, but at a first glance it looks like we could leverage standard cloud-native approaches to monitoring, logging, and metrics (e.g. Sentry, Promotheus, etc)?