Hello,
I'm running the james master branch postgres version (this commit
<http://c75eb15030b5811435f982a02e54fc2ab1e63691> to be more specific), and
am trying to export the metrics to my prometheus stack deployed in a k3s
cluster. With the servicemonitors setup and the metrics enabled through the
webadmin.properties file, I am only able to scrape "some" of the metrics
referenced in the docs and dashboards here
<https://github.com/apache/james-project/tree/d2cf7c8e229d9ed30125871b3de5af3cb1553649/server/grafana-reporting/prometheus-datasource>

The metrics available to me are shown in the screenshot below, but the
dashboards are showing some other metrics like "JMAP_request",
"JMAP_getMailboxes", etc. which are not available in the metrics endpoint.

Now my question is, how can I enable all metrics that are shown in the docs
and example dashboards? Have they been renamed/removed recently?

[image: image.png]

PS: I noticed that the metrics factory is being injected in the jmap source
code in files like these </>, but they are never used anywhere (Unless they
are somehow being invisibly used through Scala magic). If i properly create
a metric here, would it automatically be exposed to the /metrics route? or
is the recommended way to do this is through mailets?

Reply via email to