Expose collected metrics on /q/metrics
endpoint
#32647
-
Hi, CC: @ppatierno |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 26 replies
-
/cc @ebullient (metrics), @jmartisk (metrics) |
Beta Was this translation helpful? Give feedback.
-
There is a separate Quarkus JMX Micrometer registry present in the Quarkiverse project: https://github.com/quarkiverse/quarkus-micrometer-registry You can have both registries enabled at the same time, but no, the JMX registry does not use the metrics URL. JMX is a different animal. |
Beta Was this translation helpful? Give feedback.
-
Hi @ebullient. I am now able to get the required metrics now on |
Beta Was this translation helpful? Give feedback.
-
@ebullient Thanks for the instructions. Iam now able to get both the metrics on |
Beta Was this translation helpful? Give feedback.
-
I will be closing this discussion |
Beta Was this translation helpful? Give feedback.
So. What I was trying to suggest is that you replace the default Prometheus Meter Registry with your own..
The default producer will be replaced if you make your own:
quarkus/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProducer.java
Line 20 in b687fbb
You can also disable construction of the default Prometheus Meter Registry with a property (assuming you add your own instead):
quarkus.micrometer.export.prometheus.default-registry=false
As shown here (with StatsD):
https://quarkus.io/guides/micrometer#creating-a-customized-meterregistry
My thought was that you could …