-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cassandra_stats{name=xxx} not following prometheus naming best practices #83
Comments
You can check https://github.com/criteo/cassandra_exporter#why-not-make-more-use-of-labels-be-more-prometheus-way- |
What do you mean by bringing down your Prometheus ? One alternative is to use relabeling in the scrape config to replace |
Are you sure your memory issue is not just because the exporter expose a lot of metrics? It's possible to blacklist some high cardinality metrics to save some memory in the configuration of the exporter. I can try to mesure the difference in memory usage between 1 metrics with 5000 labels and 5000 metric but you may have to wait a bit. |
Hello, sorry for the delay. I tried locally the difference between 50 metrics with 1000 series each vs 5000 metrics with 10 series each and didn't notice any particular difference in memory usage. I think your increase in memory is expected given the additional number of metrics generated by the exporter. The memory usage is given by the total number of series independent of the cardinality of each metrics. My advice is to increase your memory limit or blacklist metrics using the blacklist feature of the exporter. |
Hi, This presents material issues with hitting series limits for
I would encourage the authors of the exporter to properly adhere to Prometheus guidance here. |
Hi,
We have implemented your exporter on our cassandra infrastructure, but it is bringing down Prometheus due to the large memory footprint required by the "name" label.
Prometheus documentation shows that the current implementation of this exporter does not follow prometheus naming conventions , where you should have each metric representing "something", as your current implementation does with label "name".
Is it possile to replace the metric name cassandra_stats in favour of something more naming-compliant, i.e. cassandra_%yourCurrentNameLael%_units
As a reference, a label with more than 8 unique values is considered "highly" cardinal, causing high memory needs, and slow performance when trying to query it.
Prometheus supports millions of metric Names , but it is highly sensible to cardinality.
Thanks in advance,
The text was updated successfully, but these errors were encountered: