Comments (5)
The Prometheus architecture is that metrics are collected upon request, as any form of caching is going to cause aliasing and related weirdness.
from jmx_exporter.
And this is probably valid when metric collection is cheap, which clearly isn't the case with the jmx exporter. Having multiple clients fetching data from /metrics makes all that worse.
I totally agree that in this case the software should get fixed as fetching metrics should not really do actual work in general. But since changing all that in something like Cassandra isn't trivial it would be good to have a (discouraged) workaround.
I'll try to profile what is taking so much time exactly tomorrow, and post results here, maybe there is a quick win that can make that less necessary.
from jmx_exporter.
The problem with C* was latency when I last investigated it, there's lots of waiting in the various JMX calls. Thus multiple clients doesn't make a difference.
from jmx_exporter.
The thing is that some of these jmx calls create more load on the machine (the SnapshotSize for example does actually I/O).
This surely should be fixed, but my point is that since not all software will be fixable it might be a good idea to provide a way to mitigate issues when they happen. One solution is to collect metrics in the background.
If you feel that this is not something you want in the official client, that's fine too, we will just build it on top of JMX Exporter :)
from jmx_exporter.
Caching is usually considered bad practice, so it's not something I'm inclined to add.
from jmx_exporter.
Related Issues (20)
- Can't add metrics to blacklistObjectNames HOT 6
- Plan for release with Prometheus Client 1.x? HOT 2
- no main manifest attribute, in jmx_prometheus_javaagent-0.19.0.jar HOT 1
- Hazelcast Metrics are not showing HOT 2
- Remote jmx has enabled SSL. How to configure jmx-exporter for verification? HOT 13
- Ability to use lowercaseOutputName in particular rules HOT 4
- jmx exporter inside Confluent Kafka broker container HOT 2
- After applying JMX filtering pattern, it takes 23 secs to scrape the metrics, is it expected behaviour? HOT 6
- Collection fails for Kafka using release 1.0.0 HOT 14
- feature request: allow to exclude specific attribute patterns inside a composite attribute HOT 3
- Clarify in documentation "jvm_*" metrics HOT 4
- jmxexporter adding incorrect _total suffix to #HELP and #TYPE when using COUNTER HOT 10
- Kafka Metrics showing type as "Untyped" HOT 3
- Advice for validating JMX exporter rules HOT 1
- Support multi-target in http server mode HOT 6
- JMX agent interfering with logging format of application HOT 3
- Extracting PM metrics on Kafka Cluster results in duplicate files due to different cases in the same metric names. HOT 5
- Metric name "_info" suffix gets trimmed HOT 1
- kafka command raise 'Address Already in used' after configuration HOT 11
- kafka_2.13-3.7.1 without metrics HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmx_exporter.