Re: Missing JMAP metrics in Prometheus endpoint - how to enable all documented metrics?
Benoit TELLIER <[email protected]> Fri, 29 Aug 2025 06:37:50 +0000
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <[email protected]> |
---=Part.99b.bf782cdcc0cf7910.198f48bf979.5f25c98b1b8eb89d=- Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT, de-DE Content-Language: en-US It's very possible the metric doc is outdated=2E Fixes for the metric name= s welcome=2E The names reported in grafana are the correct ones=2E Regard= s --=C2=A0 Best regards, Benoit TELLIER General manager of Linagora VIE= TNAM=2E Product owner for Team-Mail product=2E Chairman of the Apache James= project=2E Mail: btellier@linagora=2Ecom Tel: (0033) 6 77 26 04 58 (Whats= App, Signal) On Aug 29, 2025 8:15 AM, from Samiul Islam <sami@appscode=2E= com=2EINVALID>Hello, I'm running the james master branch postgres version (= this commit to be more specific), and am trying to export the metrics to m= y prometheus stack deployed in a k3s cluster=2E With the servicemonitors se= tup and the metrics enabled through the webadmin=2Eproperties file, I am on= ly able to scrape "some" of the metrics referenced in the docs and dashboar= ds=C2=A0here The metrics available to me are shown in the screenshot belo= w, but the dashboards are showing some other metrics like "JMAP_request", "= JMAP_getMailboxes", etc=2E which are not available in the metrics endpoint= =2E 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? [im= age=2Epng] PS:=C2=A0I noticed that the metrics factory is being injected i= n the jmap source code in files like these , but they are never used anywhe= re (Unless they are somehow being invisibly used through Scala magic)=2E 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? ---=Part.99b.bf782cdcc0cf7910.198f48bf979.5f25c98b1b8eb89d=---