From b6193d9697815ae8251593aab8dd490a1d3dafc6 Mon Sep 17 00:00:00 2001 From: jschaul Date: Tue, 14 Jan 2020 17:39:22 +0100 Subject: [PATCH] jmx restrictions --- files/prometheus-jmx.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/files/prometheus-jmx.yml b/files/prometheus-jmx.yml index a00242c..d2303df 100644 --- a/files/prometheus-jmx.yml +++ b/files/prometheus-jmx.yml @@ -1,6 +1,29 @@ --- lowercaseOutputLabelNames: true lowercaseOutputName: true +whitelistObjectNames: ["org.apache.cassandra.metrics:*"] +blacklistObjectNames: + # ColumnFamily is an alias for Table metrics + - "org.apache.cassandra.metrics:type=ColumnFamily,*" + # + # These are very costly for cassandra to retrieve, + # and we don't make use of them on grafana currently. + # See also steps taken in https://github.com/criteo/cassandra_exporter + # metrics docs: http://cassandra.apache.org/doc/latest/operating/metrics.html + # + # "estimated" metrics + - "org.apache.cassandra.metrics:name=PendingTasks,*" + - "org.apache.cassandra.metrics:name=PendingTasksByTableName,*" + - "org.apache.cassandra.metrics:name=EstimatedPartitionSizeHistogram,*" + - "org.apache.cassandra.metrics:name=EstimatedPartitionCount,*" + - "org.apache.cassandra.metrics:name=EstimatedColumnCountHistogram,*" + - "org.apache.cassandra.metrics:name=PendingFlushes,*" + - "org.apache.cassandra.metrics:name=PendingCompactions,*" + # disk space metrics + - "org.apache.cassandra.metrics:name=LiveDiskSpaceUsed,*" + - "org.apache.cassandra.metrics:name=TotalDiskSpaceUsed,*" + - "org.apache.cassandra.metrics:name=BloomFilterDiskSpaceUsed,*" + - "org.apache.cassandra.metrics:name=TrueSnapshotsSize,*" rules: - pattern: org.apache.cassandra.metrics<>(Count|Value|\d+thPercentile|\w+Rate|Max|Mean|Min|StdDev) name: cassandra_$1_$3