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

Kube by Prom API does not discover/monitor pods with same name under different namespaces #309

Open
sumukharaj opened this issue Nov 27, 2023 · 0 comments

Comments

@sumukharaj
Copy link

Kube by Prom API (Discovery) discovers pods with same name but under different namespaces.
For example in the below screenshot, there are several pods with the name ai-postgres-0 but the template will discover only one
image

Similarly the Kube Pod by Prom API template will collect data for only one of the pods. not the rest of them.

A change in host Prototype for the discovery template works only for discovery. but not for metric collection.

For example: change Host Prototype from "{#PODNAME}" to "{#PODNAME}_{#NAMESPACE}" will allow discovery of multiple pods with same name but different namespaces. but the metrics will not be fetched by Kube Pod by Prom API template

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

1 participant