|
/etc/prometheus/alert_rules.yml > nginx_alerts
|
alert: NginxExporterDown
expr: up{job="nginx"}
== 0
for: 1m
labels:
severity: critical
annotations:
description: Prometheus cannot scrape NGINX metrics.
summary: 'NGINX exporter down: {{ $labels.instance }}'
|
|
|
|
/etc/prometheus/alert_rules.yml > node_exporter_alerts
|
| Labels |
State |
Active Since |
Value |
|
alertname="HighDiskUsage"
device="/dev/mapper/ubuntu--vg-ubuntu--lv"
fstype="ext4"
instance="click-r1:9100"
job="node_exporter"
mountpoint="/"
severity="warning"
|
firing |
2025-12-07 10:20:59.427195323 +0000 UTC |
94.83043690418666 |
| Annotations |
- description
- Filesystem / is over 90% full.
- summary
- Disk usage high on click-r1:9100
|
|
|
|
|
|
alert: NodeDown
expr: up{job="node_exporter"}
== 0
for: 2m
labels:
severity: critical
annotations:
description: Node exporter is not reachable.
summary: 'Node down: {{ $labels.instance }}'
|
|
/etc/prometheus/alert_rules.yml > rabbitmq_alerts
|
alert: RabbitMQExporterDown
expr: up{job="rabbitmq"}
== 0
for: 2m
labels:
severity: critical
annotations:
description: Prometheus cannot scrape RabbitMQ metrics.
summary: 'RabbitMQ exporter down: {{ $labels.instance }}'
|
|
|
|
|