Skip to content

Commit

Permalink
jmx restrictions (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaul authored Mar 26, 2020
1 parent 5557dd4 commit 828f28d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions files/prometheus-jmx.yml
Original file line number Diff line number Diff line change
@@ -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<type=(Connection|Streaming), scope=(\S*), name=(\S*)><>(Count|Value|\d+thPercentile|\w+Rate|Max|Mean|Min|StdDev)
name: cassandra_$1_$3
Expand Down

0 comments on commit 828f28d

Please sign in to comment.