0

I'm using JMX_Exporter for monitoring Mbeans exposed by my application. I have the Mbean with ObjetName com.production.swee.cis:name=CircuitBreaker and for this Mbean I want to monitor below attributes:

Attributes shown in VisualVM

  1. CircuitTripped
  2. FailureCount
  3. FailureEntries
  4. FailureEntryTimeout
  5. FailureLimit

I have configured JMX_Exporter like below:

lowercaseOutputLabelNames: true
lowercaseOutputName: true
whitelistObjectNames:
 - "--other ObjectNames --"
 - "com.production.swee.cis:Name=CircuitBreaker"
rules:
--other rules--
- pattern: 'com.production.swee.cis<Name=CircuitBreaker><>(\w+):'
  name: jmx_circuitbreaker
  labels:
    name: "$1"
  help: jmx_CircuitBreaker_status
  type: GAUGE

For some reason my metric does not return any data.Looks like whitelistObjectNames or my pattern are not matching.

I even tried:

lowercaseOutputLabelNames: true
lowercaseOutputName: true
whitelistObjectNames:
 - "--other ObjectNames --"
 - "com.production.swee.cis:Name=CircuitBreaker"
rules:
--other rules--
- pattern: '(.*)'
  name: jmx_circuitbreaker
  labels:
    name: "$1"
  help: jmx_CircuitBreaker_status
  type: GAUGE

Any hint so far?

1 Answer 1

1

the value of the label you are mentioning is actually not the value. it's the attribute name that you are capturing at $1. so use the following config and let me know if it works or not.

lowercaseOutputLabelNames: true
lowercaseOutputName: true
whitelistObjectNames:
  - "--other ObjectNames --"
  - "com.production.swee.cis:Name=CircuitBreaker"
rules:
  --other rules--
  - pattern: 'com.production.swee.cis<Name=CircuitBreaker><>(.+):'
    name: jmx_circuitbreaker_$1
    help: jmx_circuitbreaker_status
    type: GAUGE

Good luck!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.