Yes, this is what the `up` metric provides. There's also `scrape_duration_seconds` that provides the time it took to perform the scrape. This makes it easier to see timeouts.
On Sat, Mar 6, 2021 at 11:16 AM Tom Liefheid <[email protected]> wrote: > Hi, > > Are we able to see errors in scrapes in the prometheus metrics itself? > i sometimes have issues on network level, which makes my prometheus unable > to scrape targets, causing it to send alerts. > > It would be useful to have a label or something in a metric from > prometheus to visualise in my grafana instance the errors, so it's easier > to pinpoint issues on scrapes in the future > > Thanks, > Tom > > -- > 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/6a2d640e-e03f-44cd-aa6d-08cc6c913849n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/6a2d640e-e03f-44cd-aa6d-08cc6c913849n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmpnQ-%3DechgO6_xH92exG-1ZTKw-%2BN5zbqN4hOSYbicCBg%40mail.gmail.com.

