On Tue, Apr 21, 2020 at 2:32 AM Kameneko <kamen...@lab-dev.net> wrote:

> 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)
>

The query results above make sense if the UI is now also showing these 59
targets (like in your last line here), right? But before, that metric
should have been 0.


>
> 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 prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/5c8fb87e-75d8-4516-81c1-f3982f2c1010%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/5c8fb87e-75d8-4516-81c1-f3982f2c1010%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CA%2BT6YowRMimJw8EN5vb8v6Q8%2B%3Dwmj-JfygWrhooURL_oFpt%3D2A%40mail.gmail.com.

Reply via email to