Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rustyrazorblade/1b451c92dff6d3450083e1b626d5c2ab to your computer and use it in GitHub Desktop.
Save rustyrazorblade/1b451c92dff6d3450083e1b626d5c2ab to your computer and use it in GitHub Desktop.
---
startDelaySeconds: 0
hostPort: 127.0.0.1:7199
username:
password:
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:7199/jmxrmi
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false
whitelistObjectNames:
- "org.apache.cassandra.metrics:*"
- "org.apache.cassandra.db:*"
- "org.apache.cassandra.net:*"
- "org.apache.cassandra.internal:*"
blacklistObjectNames:
- "org.apache.cassandra.metrics:type=ColumnFamily,*"
rules:
- pattern: 'org.apache.cassandra.metrics<type=Table, keyspace=(\w+), scope=(\w+), name=(\w+)><>Value: (\d+)'
name: table_metrics
value: $4
help: "Cassandra $1.$2"
type: GAUGE
attrNameSnakeCase: false
valueFactor: 0.001
labels: {"name":"$3", "keyspace":"$1", "table":"$2"}
- pattern: 'org.apache.cassandra.db<type=(\w+)><>(\w+): (\d+)'
name: db
value: $3
type: GAUGE
help: "internal database counter"
attrNameSnakeCase: false
labels: {"type":"$1", "attribute": "$2"}
- pattern: 'org.apache.cassandra.net<type=(\w+)><>(\w+): (\d+)'
name: net
value: $3
type: GAUGE
help: "internal database counter"
attrNameSnakeCase: false
labels: {"type":"$1", "attribute": "$2"}
- pattern: 'org.apache.cassandra.internal<type=(\w+)><>(\w+): (\d+)'
name: internal
value: $3
type: GAUGE
help: "internal database counter"
attrNameSnakeCase: false
labels: {"type":"$1", "attribute": "$2"}
# commented out - this is the original setup, but it's too generic
# we don't get any useful info from this, but it's helpful as a reference
# - pattern: 'org.apache.cassandra.metrics<type=(\w+), name=(\w+)><>Value: (\d+)'
# name: cassandra_$1_$2
# value: $3
# valueFactor: 0.001
# labels: {}
# help: "Cassandra metric $1 $2"
# type: GAUGE
# attrNameSnakeCase: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment