Missing JMAP metrics in Prometheus endpoint - how to enable all documented metrics?
Samiul Islam <[email protected]> Fri, 29 Aug 2025 12:14:53 +0600
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <CA+oRvmNFFd8Qiny=a+xPnGVhN4XAthPYZL_9d02g23jYwewYjg@mail.gmail.com> |
--000000000000589edd063d7af12b Content-Type: multipart/alternative; boundary="000000000000589edc063d7af12a" --000000000000589edc063d7af12a Content-Type: text/plain; charset="UTF-8" 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? --000000000000589edc063d7af12a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello,<br>I'm running the james master branch postgres= version (<a href=3D"http://c75eb15030b5811435f982a02e54fc2ab1e63691">this = commit</a> 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 abl= e to scrape "some" of the metrics referenced in the docs and dash= boards=C2=A0<a href=3D"https://github.com/apache/james-project/tree/d2cf7c8= e229d9ed30125871b3de5af3cb1553649/server/grafana-reporting/prometheus-datas= ource">here</a><br><br>The metrics available to me are shown in the screens= hot below, but the dashboards are showing some other metrics like "JMA= P_request", "JMAP_getMailboxes", etc. which are not availabl= e in the metrics endpoint.<br><br>Now my question is, how can I enable all = metrics that are shown in the docs and example dashboards? Have they been r= enamed/removed recently?<br><br><img src=3D"cid:ii_mewfr3sn1" alt=3D"image.= png" width=3D"437" height=3D"372"><br><br>PS:=C2=A0I noticed that the metri= cs factory is being injected in the jmap source code in files like <a href= =3D"/">these</a>, but they are never used anywhere (Unless they are somehow= being invisibly used through Scala magic). If i properly create a metric h= ere, would it automatically be exposed to the /metrics route? or is the rec= ommended way to do this is through mailets?<br><br></div> --000000000000589edc063d7af12a-- --000000000000589edd063d7af12b--