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

pod service discovery: use port names in k8s configs to select prometheus ports #724

Open
stephen-soltesz opened this issue Jul 21, 2020 · 0 comments

Comments

@stephen-soltesz
Copy link
Contributor

Sometimes we declare multiple ports in the k8s daemonset or deployment configuration. Our existing service discovery rules in prometheus tries to scrape all declared ports. This could be simplified by naming the ports in a specific way (e.g. "prometheus-port") so that the SD rules know to select only this port.

This would only be helpful if this could be applied to multiple ports for multiple containers with in a pod.

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

No branches or pull requests

1 participant