jmx_exporter icon indicating copy to clipboard operation
jmx_exporter copied to clipboard

Domain name in labels (weblogic)

Open dargow opened this issue 3 years ago • 7 comments

How can I configure the exporter to get the domain name as a label in every runtime metric? As I can see, such information is present in JMX objects: image

dargow avatar Aug 10 '22 10:08 dargow

You should be able use a pattern along with labels per documentation.

dhoard avatar Jul 26 '23 11:07 dhoard

I also want to know. have used the following pattern regex but didn't work.

 - pattern: "^com.bea<Name=(.+),Type=Domain><>(.+):"
    name: weblogic_$2
    attrNameSnakeCase: true
    labels:
      domain: $1

but it didn't work.

also another thing when we see the jmx mbean we can see the mbean is like as the following, com.bea:Name=name,Type=Domain

but in jmx config we have to mention it like as below format com.bea<Name=name,Type=Domain><Metric>

can someone tell me how can I dump or see all the means like as the above format so that we can easily create custom configs?

Nirzak avatar Apr 17 '24 06:04 Nirzak