cassandra-exporter icon indicating copy to clipboard operation
cassandra-exporter copied to clipboard

Feature: Export keyspace replication factor metrics

Open JensRantil opened this issue 5 years ago • 0 comments
trafficstars

We have a custom developed Cassandra exporter that uses the system_schema.keyspaces table to export metrics like the following Gauge (containing the replica factor):

$ curl localhost:8080/metrics|grep cassandra_keyspace_replication
# HELP cassandra_keyspace_replication The keyspace replication factor(s) for a keyspace.
# TYPE cassandra_keyspace_replication gauge
cassandra_keyspace_replication{class="org.apache.cassandra.locator.NetworkTopologyStrategy",keyspace="cassandra_pinger",param="Cassandra"} 3
cassandra_keyspace_replication{class="org.apache.cassandra.locator.SimpleStrategy",keyspace="system_auth",param="replication_factor"} 1
...

This might be very useful information to make inventory and alerts on keyspaces that are under replicated (for example system_auth keyspace defaults to 1).

JensRantil avatar Oct 28 '20 15:10 JensRantil