Hi dears,

I'm trying to define an alert rule as below, and the scrape and evaluation 
interval are 3m.


I checked from log, blackbox will send probe every 2-3second, then the 
metrics will be generated every 2-3second, and the data will be compare 
with the alert rules to dertermine an alert will be triggered or not? 

I have a question if Prometheus compares the Live data from blackbox probe, 
or compares the data with Prometheus scrapped in last 3 mins?

prometheus.yml: |-
    global:
      scrape_interval: 3m
      evaluation_interval: 3m

- alert: EndpointDown
          expr: probe_success == 0
          for: 5s
          labels:
            severity: critical
          annotations:
            description: Service {{ $labels.instance }} is unavailable.
            value: DOWN ({{ $value }})
            summary: "Endpointdown {{ $labels.instance }} is down."

-- 
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/7a46b322-6d64-4076-9986-898681088827n%40googlegroups.com.

Reply via email to