Skip to content

Instantly share code, notes, and snippets.

@n1ko-w1ll
Created January 10, 2018 13:55
Show Gist options
  • Save n1ko-w1ll/8e1c5eb982f086946cae7f3c6736f56d to your computer and use it in GitHub Desktop.
Save n1ko-w1ll/8e1c5eb982f086946cae7f3c6736f56d to your computer and use it in GitHub Desktop.
Apache ActiveMQ Artemis 2.x JMX Exporter Example Configuration
---
lowercaseOutputName: true
lowercaseOutputLabelNames: true
rules:
- pattern: "^org.apache.activemq.artemis<broker=\"([^\"]*)\"><>([^:]*):\\s(.*)"
attrNameSnakeCase: true
name: artemis_$2
type: COUNTER
labels:
host: $1
- pattern: "^org.apache.activemq.artemis<broker=\"([^\"]*)\",\\s*component=addresses,\\s*address=\"([^\"]*)\"><>([^:]*):\\s(.*)"
attrNameSnakeCase: true
name: artemis_$3
type: COUNTER
labels:
host: $1
address: $2
- pattern: "^org.apache.activemq.artemis<broker=\"([^\"]*)\",\\s*component=addresses,\\s*address=\"([^\"]*)\",\\s*subcomponent=(queue|topic)s,\\s*routing-type=\"([^\"]*)\",\\s*(queue|topic)=\"([^\"]*)\"><>([^: ]*):\\s(.*)"
attrNameSnakeCase: true
name: artemis_$7
type: COUNTER
labels:
host: $1
address: $2
"$5": $6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment