Difference between revisions of "Prometheus: alert:"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
* https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
 
* https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
 +
 +
<pre>
 +
alert: InstanceDown
 +
expr: up == 0
 +
for: 5m
 +
labels:
 +
  severity: page
 +
annotations:
 +
  summary: "Instance {{$labels.instance}} down"
 +
  description: "{{$labels.instance}} of job {{$labels.job}} has been down for more than 5 minutes."
 +
</pre>
  
  

Revision as of 14:59, 11 February 2022

Advertising: