This adds endpoint for Prometheus. When started with --metrics 127.0.0.1:9001, there is an additional web server. Then if I do curl http://127.0.0.1:9001/metrics I get this:
# HELP direct_notifications_total Number of direct notifications.
# TYPE direct_notifications_total counter
direct_notifications_total_total 2
# EOF
The idea is to point Prometheus monitoring to this so we can notice if the counter stops increasing, e.g. when TLS certificate expires and chatmail servers cannot notify anymore because of this.
This adds endpoint for Prometheus. When started with
--metrics 127.0.0.1:9001
, there is an additional web server. Then if I docurl http://127.0.0.1:9001/metrics
I get this:The idea is to point Prometheus monitoring to this so we can notice if the counter stops increasing, e.g. when TLS certificate expires and chatmail servers cannot notify anymore because of this.