Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rustyrazorblade/8fcb67cff028bfaca1716ce7afdfb781 to your computer and use it in GitHub Desktop.
Save rustyrazorblade/8fcb67cff028bfaca1716ce7afdfb781 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:*"]
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"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment