Correction: I am using the RedHat Artemis Prometheus Metrics Plugin. I should have added my configuration as well:
<metrics> <jvm-memory>true</jvm-memory> <!-- defaults to true --> <jvm-gc>true</jvm-gc> <!-- defaults to false --> <jvm-threads>true</jvm-threads> <!-- defaults to false --> <file-descriptors>true</file-descriptors> <!-- defaults to false --> <processor>true</processor> <!-- defaults to false --> <uptime>true</uptime> <!-- defaults to false --> <plugin class-name="com.redhat.amq.broker.core.server.metrics.plugins.ArtemisPrometheusMetricsPlugin"/> </metrics> Regards, William Crowell From: William Crowell <wcrow...@perforce.com.INVALID> Date: Wednesday, March 26, 2025 at 11:05 AM To: users@activemq.apache.org <users@activemq.apache.org> Subject: Artemis Prometheus Metrics Plugin Servlet /metrics Endpoint Is Slow Hi, I am using the Artemis Prometheus Metrics Plugin Servlet on Apache Artemis 2.39.0. I noticed when I hit the /metrics endpoint of the servlet takes a substantial amount of time to load because of the large amount of data returned. Is there any way to just get aggregated counts for data returned by this servlet? I know there are optional metrics that you can enable/disable: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2Flatest%2Fmetrics.html%23optional-metrics&data=05%7C02%7CWCrowell%40perforce.com%7C748fff68f393408f144008dd6c779ac4%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C638785983140721157%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=qnfY%2FV3Uj7P6R6UfonhwzxHwO8iuQXC1JnhJG6aZqCc%3D&reserved=0<https://activemq.apache.org/components/artemis/documentation/latest/metrics.html#optional-metrics> Regards, William Crowell This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately. This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.