deis / monitor

Monitoring for Deis Workflow
https://deis.com
MIT License
22 stars 32 forks source link

Metrics: Generic Metrics #64

Closed jchauncey closed 8 years ago

jchauncey commented 8 years ago

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.

jchauncey commented 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