Skip to content

Commit 828f28d

Browse files
authored
jmx restrictions (#11)
1 parent 5557dd4 commit 828f28d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

files/prometheus-jmx.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
---
22
lowercaseOutputLabelNames: true
33
lowercaseOutputName: true
4+
whitelistObjectNames: ["org.apache.cassandra.metrics:*"]
5+
blacklistObjectNames:
6+
# ColumnFamily is an alias for Table metrics
7+
- "org.apache.cassandra.metrics:type=ColumnFamily,*"
8+
#
9+
# These are very costly for cassandra to retrieve,
10+
# and we don't make use of them on grafana currently.
11+
# See also steps taken in https://github.com/criteo/cassandra_exporter
12+
# metrics docs: http://cassandra.apache.org/doc/latest/operating/metrics.html
13+
#
14+
# "estimated" metrics
15+
- "org.apache.cassandra.metrics:name=PendingTasks,*"
16+
- "org.apache.cassandra.metrics:name=PendingTasksByTableName,*"
17+
- "org.apache.cassandra.metrics:name=EstimatedPartitionSizeHistogram,*"
18+
- "org.apache.cassandra.metrics:name=EstimatedPartitionCount,*"
19+
- "org.apache.cassandra.metrics:name=EstimatedColumnCountHistogram,*"
20+
- "org.apache.cassandra.metrics:name=PendingFlushes,*"
21+
- "org.apache.cassandra.metrics:name=PendingCompactions,*"
22+
# disk space metrics
23+
- "org.apache.cassandra.metrics:name=LiveDiskSpaceUsed,*"
24+
- "org.apache.cassandra.metrics:name=TotalDiskSpaceUsed,*"
25+
- "org.apache.cassandra.metrics:name=BloomFilterDiskSpaceUsed,*"
26+
- "org.apache.cassandra.metrics:name=TrueSnapshotsSize,*"
427
rules:
528
- pattern: org.apache.cassandra.metrics<type=(Connection|Streaming), scope=(\S*), name=(\S*)><>(Count|Value|\d+thPercentile|\w+Rate|Max|Mean|Min|StdDev)
629
name: cassandra_$1_$3

0 commit comments

Comments
 (0)