= Why ?
I want to export James metrics to prometheus.
This modern metric stack relies on pulling (prometheus collects the metrics) instead of pushing.
This need had been expressed by ieugen here: https://github.com/ieugen/james-self-hosting-sandbox/issues/20
= How ?
With the https://github.com/prometheus/client_java dependency expose that as part of a `webadmin-metrics` Unauthentictated endpoint.
Be aware that there is some conversion format to be done here:
= Definition of done
Scope: all guice products
This endpoint should require no authentication in order to be easily fetchable by prometheus.
However as an admin, I need to explicitly enable it in the webadmin configuration, it is disabled by default.