|
/etc/prometheus/rules/blackbox.rules > blackbox-exporter
|
|
|
|
|
alert: ProbeFailed
expr: probe_success
== 0
for: 5m
labels:
severity: error
annotations:
description: |-
Probe failed
VALUE = {{ $value }}
LABELS: {{ $labels }}
summary: Probe failed (instance {{ $labels.instance }})
|
|
|
alert: SlowProbe
expr: avg_over_time(probe_duration_seconds[1m])
> 3
for: 5m
labels:
severity: warning
annotations:
description: |-
Blackbox probe took more than 3s to complete
VALUE = {{ $value }}
LABELS: {{ $labels }}
summary: Slow probe (instance {{ $labels.instance }})
|
|
|
|
|
|
/etc/prometheus/rules/monitoring.rules > monitoring
|
|
|
|
|
|
|
alert: InstanceDown
expr: up == 0
for: 1m
labels:
severity: critical
annotations:
description: stuff's happening with {{ $labels.service }}
|
|
/etc/prometheus/rules/mysql.rules > mysqld_exporter
|
alert: MysqlDown
expr: mysql_up == 0
for: 5m
labels:
severity: critical
annotations:
description: |-
MySQL instance is down on {{ $labels.instance }}
VALUE = {{ $value }}
LABELS: {{ $labels }}
summary: MySQL down (instance {{ $labels.instance }})
|
|
|
|
|