instaclustr / cassandra-exporter

Java agent for exporting Cassandra metrics to Prometheus
Apache License 2.0
73 stars 46 forks source link

prometheus-exclusions #85

Closed universalle closed 1 year ago

universalle commented 4 years ago

How prometheus-exclusions file should look like? Real examples?

How to exclude for example these metrics?

cassandra_dropped_messages_cross_node_latency_seconds cassandra_dropped_messages_internal_latency_seconds cassandra_dropped_messages_total

hadarizi commented 4 years ago

Hi @universalle under cassandra-env.sh add: JVM_OPTS="$JVM_OPTS -javaagent:path>/cassandra/lib/cassandra-exporter-agent-0.9.11.jar=@<path/cassandra/conf/metrics-exporter.yml"

under metrics-exporter.yml: --global-labels=CLUSTER,NODE --exclude-keyspaces=dse_security --exclude=@/cassandra/conf/exclude-metrics.properties

under exclude-metrics.properties define the metrics to exclude: cassandra_dropped_messages_cross_node_latency_seconds cassandra_dropped_messages_internal_latency_seconds cassandra_dropped_messages_total

Don't forget to set the right permissions to those files. GL

universalle commented 4 years ago

Thank you very much @hadarizi