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

Service Discovery for Kubernetes API Server #4016

Closed
nsauro opened this Issue Mar 26, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@nsauro
Copy link

nsauro commented Mar 26, 2018

As per the documentation on kubernetes_sd_configs

# The API server addresses. If left empty, Prometheus is assumed to run inside
# of the cluster and will discover API servers automatically and use the pod's
# CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.

My use case is that I'm running Prometheus outside of the Kubernetes Cluster that it is monitoring(for fear that if the cluster goes haywire, it doesn't bring down our eye and ears with it). It would be nice to be able to use some kind of SD mechanism to find the API servers vs hardcoding in a list of servers.

Thanks!

@nsauro nsauro changed the title SD for Kubernetes API Server Service Discovery for Kubernetes API Server Mar 26, 2018

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Mar 27, 2018

I don't think that multiple layers of SD would be sane to support. In such a setup you should have DNS which you can use for this.

@nsauro

This comment has been minimized.

Copy link
Author

nsauro commented Mar 27, 2018

Yea..we are using that currently, but was hoping to use ec2 or some other sd to help reduce the amount of differences in configurations between environments.

Right now, our dns entries are different due to the different environments(and I cannot get dns search suffixing to work for whatever reason), which causes us to have to do some config management to generate configs for each env.

Thanks anyway.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Mar 27, 2018

You need configuration management to generate different configs for each Prometheus anyway as they all should have different external labels.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.