Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created April 22, 2016 08:13
Show Gist options
  • Save chbatey/2c24ec17ef939f40fbac008cb331d498 to your computer and use it in GitHub Desktop.
Save chbatey/2c24ec17ef939f40fbac008cb331d498 to your computer and use it in GitHub Desktop.
owercaseOutputLabelNames: true
lowercaseOutputName: true
rules:
- pattern: org.apache.cassandra.metrics<type=ClientRequest, scope=(\S*), name=(Latency)><>([0-9a-zA-Z]*)
name: cassandra_clientrequest_$1_$2_$3
- pattern: org.apache.cassandra.metrics<type=ColumnFamily, name=(WriteLatency|ReadLatency)><>([0-9a-zA-Z]*)
name: cassandra_columnfamily_$1_$2
- pattern: org.apache.cassandra.metrics<type=(Connection|Streaming), scope=(\S*), name=(\S*)><>(Count|Value)
name: cassandra_$1_$3
labels:
address: "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment