Thank you @brian Candler. I got this. As you mention Prometheus query "probe_success" giving accurate result. Much appreciate for your help full replay.
On Friday, 28 February 2020 14:15:21 UTC+5:30, Brian Candler wrote: > > There are two different metrics you are looking at. > > (1) "up" says whether the scrape was successful - i.e. prometheus was able > to communicate with blackbox_exporter and read the response > > (2) "probe_success" is one of the metrics returned from blackbox_exporter, > saying whether it was able to talk to the target or not > > So if blackbox_exporter is working, but the target is down, you will get > up=1 and probe_success=0. If you kill blackbox_exporter, then you will get > up=0 > > In terms of the two GUIs you showed: the blackbox_exporter is showing you > "probe_success", but prometheus is showing you "up". > > "up" is a special metric for prometheus: its one that it generates itself, > so the prometheus GUI knows that it exists and gives it special treatment. > > "probe_success" is a metric which happens to be returned by > blackbox_exporter. The prometheus GUI doesn't give this any special > treatment because it's just a metric like any other. But if you go into > the query page of prometheus and type "probe_success" as the promQL query, > you'll see what you are looking for. > > -- 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/ea8f3ed1-1de5-4b2f-9419-187638551f0a%40googlegroups.com.

