Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Export keyspace replication factor metrics #91

Open
JensRantil opened this issue Oct 28, 2020 · 0 comments
Open

Feature: Export keyspace replication factor metrics #91

JensRantil opened this issue Oct 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@JensRantil
Copy link

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).

@zegelin zegelin added the enhancement New feature or request label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants