How to turn off jvm_threads metrics from the jmx_exporter
See original GitHub issueHello,
I am using jmx_exporter to collect metrics from cassandra, and below is the config file
lowercaseOutputLabelNames: true
lowercaseOutputName: true
whitelistObjectNames: ["org.apache.cassandra.metrics:*"]
# ColumnFamily is an alias for Table metrics
blacklistObjectNames: ["org.apache.cassandra.metrics:type=ColumnFamily,*", "jvm.threads*"]
rules:
- pattern: 'org.apache.cassandra.metrics<type=ClientRequest, scope=(\w*), name=(Latency)><>(Count|Value|75thPercentile|95thPercentile|OneMinuteRate|99thPercentile)'
name: org.apache.cassandra.metrics.ClientRequest.$2
labels:
scope: $1
unit: $3
- pattern: 'org.apache.cassandra.metrics<type=Compaction, name=(BytesCompacted|PendingTasks|TotalCompactionsCompleted)><>(Value)'
name: org.apache.cassandra.metrics.Compaction.$1
labels:
unit: $2
But along with Cassandra metrics I see extra metrics from the exporter. I don’t need all the metrics, is there a way to turn off these metrics and enable only cassandra metrics?
I tried to blacklist them but it doesn’t work
blacklistObjectNames: ["org.apache.cassandra.metrics:type=ColumnFamily,*", "jvm.threads*"]```
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Monitoring Java applications with the Prometheus JMX ...
I'll build the JMX exporter, deploy Kafka, and bring its metrics into ... Use the download link on the Kafka quickstart page to...
Read more >JMX monitoring + Java custom metrics - Sysdig
It allows you to export standard metrics and custom metrics using MBeans to a monitoring system, and understand how your application is ...
Read more >Configure JMX Metrics from MBeans
Navigate to Configuration > Instrumentation > JMX to add an MBean and attributes, possibly based on complex matching patterns.
Read more >Interesting metrics from JMX - Stack Overflow
I would add: Class loaders behaviour; Threads.
Read more >Monitoring Java using JMX and custom metrics - Sysdig
Custom Java metrics are easier to maintain, troubleshoot and integrate with external monitoring tools. Any class that exports data to JMX is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s not possible to turn off. With Prometheus monitoring a process is meant to provide relevant to that process on one /metrics.
Agree, they are useful. but I am using only using jmx_exporter for cassandra metrics and for other common java applications I have other plugins which take care of these. Now all these become redundant, so trying to see if I can disable the jvm metrics from jmx_exporter.