On 20 Apr 16:58, Kameneko wrote:
> 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?


You can use the following metric:


prometheus_sd_discovered_targets == 0


regards,

> 
> [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/b31b1963-657a-4d29-81e7-5af7e742969a%40googlegroups.com.




-- 
 (o-    Julien Pivotto
 //\    Open-Source Consultant
 V_/_   Inuits - https://www.inuits.eu

-- 
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/20200421000117.GA1502790%40oxygen.

Attachment: signature.asc
Description: PGP signature

Reply via email to