question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to turn off jvm_threads metrics from the jmx_exporter

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
brian-brazilcommented, Aug 16, 2019

It’s not possible to turn off. With Prometheus monitoring a process is meant to provide relevant to that process on one /metrics.

1reaction
jaibheemcommented, Aug 16, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found