Closed jchauncey closed 8 years ago
You gather these metrics via the api server endpoint
$ curl https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERIVCE_PORT/metrics --header "Authorization: Bearer $TOKEN" --insecure
Where $TOKEN
is the service account token located at /var/run/secrets/kubernetes.io/serviceaccount/token
https://github.com/kubernetes/kubernetes/blob/6bac4fdc3713d7dd88777f0eaa9d0268f2771731/pkg/metrics/generic_metrics.go
Collect the following Generic kubernetes api metrics:
They use prometheus to expose this metrics so we should be able to use the telegraf prometheus client to poll that endpoint.