use tags or labels in metrics.xml for prometheus exporter?

33 views
Skip to first unread message

Max Freh

unread,
May 30, 2019, 5:22:51 AM5/30/19
to Payara Forum
Hi!

Is it possible to configure the prometheus exporter endpoint /metrics to use prometheus labels?

I'm looking for a way to put labels in metrics.xml

The result should be something like this for example:

# TYPE vendor:system_cpu_load gauge
# HELP vendor:system_cpu_load Display the "recent cpu usage" for the whole system. This value is a double in the [0.0,1.0] interval. A value of 0.0 means that all CPUs were idle during the recent period of time observed, while a value of 1.0 means that all CPUs were actively running 100% of the time during the recent period being observed. All values betweens 0.0 and 1.0 are possible depending of the activities going on in the system. If the system recent cpu usage is not available, the method returns a negative value.
vendor:system_cpu_load{key="value"} 0.9

Best regards
Max
Reply all
Reply to author
Forward
0 new messages