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 upkubernetes sd config support for controllermanager and scheduler #2734
Comments
This comment has been minimized.
This comment has been minimized.
|
/ping @fabxc @keegancsmith @brancz |
This comment has been minimized.
This comment has been minimized.
|
Unlike the other things you can discover, controller manager and scheduler are no first class objects you can retrieve from the Kubernetes API. You can easily add a headless services with endpoints objects though, that point to these components. Than you can simply discover them as regular services. How exactly that looks like depends on your environment a bit. See here for an example using minikube: https://github.com/coreos/prometheus-operator/tree/master/contrib/kube-prometheus/manifests/k8s/minikube |
This comment has been minimized.
This comment has been minimized.
|
@fabxc Sounds reasonable. K8s supports an endpoint called BTW, could you explain how to setup an apiserver metric monitor along with knode. I mean whether there is a way to set up a single |
This comment has been minimized.
This comment has been minimized.
|
Treating Kubernetes components in a special way is not required at all or good. For the apiserver there is already a For kubelets you have different options:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
If you are talking about self-hosted Kubernetes clusters, then no the Prometheus Operator will work on any cluster, however, if you use the scripts in the |
andyxning commentedMay 18, 2017
•
edited
Currently, kubernetes sd config can be used to fetch the knode ip. With this info and relabel, we can query both kubelet and kubeproxy metrics.
It seems that there is no support for querying controllermanager and scheduler instance address.
BTW, how to scrape apiserver metrics.
Any thoughts on this?