geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.
http://geoserver.org/geoserver-cloud
Other
246 stars 74 forks source link

Monitoring, logging, metrics? #144

Open groldan opened 2 years ago

groldan commented 2 years ago

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)?

pmauduit commented 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.