Skip to content
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

Is it possible to add capability to collect metrics from selected indices? #166

Closed
tntruong723 opened this issue Apr 6, 2023 · 2 comments

Comments

@tntruong723
Copy link

From the open issue vvanholl/elasticsearch-prometheus-exporter#321

Hi,
Currently there is only an option to disable the metric collection for indices as a whole using the setting prometheus.indices: false. Is it possible to add support to collect metrics only for a limited set of indices?
Once the number of indices grow above 50 or so, we are seeing metrics collection is taking long resulting in gaps in the metrics scraped by Prometheus. In such cases, it would be nice to be able to monitor metrics for a few critical indices instead of disabling it completely.
Thanks
Jacob Mathews

I introduced the indices filter on my side. I will send a pull request soon.

@lukas-vlcek
Copy link
Collaborator

lukas-vlcek commented May 10, 2023

@tntruong723 Feel free to close this ticket as "completed". 😄

@lukas-vlcek
Copy link
Collaborator

Closing.

This feature has been back-ported to v1.3 branch and will be included in 1.3.10.0 release.

@tntruong723 Thank you for the great contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants