I ran it as follows.
Instead of 0, 59 came back.
Apparently, ServiceDiscovery is "0/59".
I would like to know the value of Active Targets.
What should I do?
# Query
prometheus_sd_discovered_targets{config="kube-system/fluentd-logging/0"}
# Result
prometheus_sd_discovered_targets{app="prometheus-k8s",config="kube-system/fluentd-logging/0",endpoint="web",instance="10.233.104.255:9090",job="prometheus-k8s",name="scrape",namespace="monitoring",pod="prometheus-k8s-1",service="prometheus-k8s"}
59
prometheus_sd_discovered_targets{app="prometheus-k8s",config="kube-system/fluentd-logging/0",endpoint="web",instance="10.233.74.160:9090",job="prometheus-k8s",name="scrape",namespace="monitoring",pod="prometheus-k8s-0",service="prometheus-k8s"}
59
# ServiceDiscovery
kube-system/fluentd-logging/0 (0/59 active targets)
2020年4月21日火曜日 9時00分12秒 UTC+9 Kameneko:
>
> Hello Community.
>
> For some reason, Prometheus' target may be "0/0".
> For example, if the Label of the Pod in the Scrape Targets has changed.
>
> I would like to detect this.
> I've considered the "up" metric, but it doesn't output.
> How do I detect it?
>
> [image: 00_targets.png]
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5c8fb87e-75d8-4516-81c1-f3982f2c1010%40googlegroups.com.