4

When You Can't Rely on the Prometheus Up Metric

 2 years ago
source link: https://hackernoon.com/when-you-cant-rely-on-the-prometheus-up-metric
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

When You Can't Rely on the Prometheus Up Metric

Prometheus can collect metric from 1 pod when Prometheus can reach the pod to scrape metrics. But this setup will not be able to tell how many pods are ready. This is when scraping directly from pod is done via Kubernetes service. This causes a false positive when Prometheus scrapes directly from the pod. With this topology, prometheus can reach all the pods and the up metric of each pod will have the value 1, even when the pods are not in the ready state or their readiness probes are failed.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK