3 ms·
If you use GCP's Monitoring for dashboards and alerts on metrics from applications running in GKE, the easiest way to collect those seems to be running Promethe
by dividedbyzero 6y ago
If you use GCP's Monitoring for dashboards and alerts on metrics from applications running in GKE, the easiest way to collect those seems to be running Prometheus with a sidecar container that ships Prometheus' metrics to StackDriver [1].
We're running such a setup currently, i.e. we installed Prometheus via Helm, using the Helm chart's sidecar config option to add the sidecar container, and the rest works more or less automagically (k8s workloads with Prometheus endpoints are detected based on annotations and their metrics show up in Monitoring)
We have somewhat relaxed availability constraints for the project this is part of, so we're using the opportunity to gain some experience with this setup and find out whether it's good enough for highly-available prod clusters. So far it's all nice and easy and works very well.
[1] https://cloud.google.com/monitoring/kubernetes-engine/prometheus https://cloud.google.com/monitoring/kubernetes-engine/promet...