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

The resource state metrics provide different metrics paths depending on the cluster #544

Open
Iceber opened this issue Jul 17, 2023 · 1 comment · Fixed by #553
Open
Labels
area/kube-state-metrics Issues or PRs related to kube-state-metrics kind/feature New feature

Comments

@Iceber
Copy link
Member

Iceber commented Jul 17, 2023

What would you like to be added?

The resource status metrics for all clusters are currently exposed in the /metrics path, and although flags are provided to filter the metrics, the data for these metrics grows linearly as clusters increase.

To ensure that monitoring tools like prometheus can process metrics faster, I'd like to provide different metrics paths for different clusters, e.g. /clusters/<cluster name>/metrics

Of course we also need to make prometheus automatically discover and collect metrics from new clusters, so if you have any ideas, please comment!

Why is this needed?

It is possible to ensure that the resource state metrics of a cluster are smaller under a single path, so that monitoring tools such as prometheus can better collect them

@Iceber Iceber added kind/feature New feature area/kube-state-metrics Issues or PRs related to kube-state-metrics labels Jul 17, 2023
@clusterpedia-bot
Copy link

Hi @Iceber,
Thanks for opening an issue!
We will look into it as soon as possible.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kube-state-metrics Issues or PRs related to kube-state-metrics kind/feature New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants