Hi Team,

I am using Black-Box exporter to monitor our Service-UI in Prometheus.

Problem-Summery: I have a service running on Two nodes as primary and 
secondary , Currently i gets the alert if service UI is down on primary 
node but it stills running on secondary node . I am using below alerting 
Rule. I am using file_sd-configs: to store my Service URLs.

alert: Service
  UI down
expr: probe_http_status_code
  == 0
for: 2m
labels:
  severity: critical
annotations:
  summary: Service {{ $labels.instance }} UI is down


Query: can i use IF statement here for checking if both primary and 
secondary UI is down then only send the alerts as critical ELSE a Warning 
as primary UI is down but secondary UI is still running, please start the 
primary UI.

can anyone please provide a example query for this ...Thanks in advance.

 

-- 
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/11893108-9e14-4df3-84a2-71ce74c3b430o%40googlegroups.com.

Reply via email to