Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConfiguring Prometheus for multiple Kubernetes Clusters #3612
Comments
This comment has been minimized.
This comment has been minimized.
|
You need two scrape configs to do this. Generally you'd run one Prometheus inside each cluster. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Dec 22, 2017
This comment has been minimized.
This comment has been minimized.
|
Hi @brian-brazil |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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. |
NayabZehra commentedDec 22, 2017
•
edited
What did you do?
I am trying to configure Prometheus for multiple Kubernetes Cluster and running prometheus outside the cluster.
I have used the configurations provided here https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml
What did you expect to see?
As you can see that in the relabeling configs i need to provide the api_server address and port but there is no meta label provided for api_server. so i cant provide the api_server address to the address label. as this metrics path /api/v1/nodes/${1}/proxy/metrics/cadvisor will only work with the api server of kubernetes master, so the replacement of address should be the master ip, that will be different for all clusters. How can i achieve that?
Environment
System information:
Prometheus Host : Linux 4.4.0-104-generic x86_64
Kubernetes Host : Linux 3.10.0-693.5.2.el7.x86_64 x86_64
Prometheus version:
v1.8.0