mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-14 11:37:31 +00:00
b3b400137a
Add blackbox exporter Add mysql exporter
37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
groups:
|
|
- name: blackbox-exporter.rules
|
|
rules:
|
|
- alert: BlackboxProbeFailed
|
|
annotations:
|
|
dashboard_url: https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?instance={{
|
|
$labels.instance }}
|
|
description: The probe failed for the instance {{ $labels.instance }}.
|
|
summary: Probe has failed for the past 1m interval.
|
|
expr: |
|
|
probe_success{job="blackbox-exporter"} == 0
|
|
for: 1m
|
|
labels:
|
|
severity: critical
|
|
- alert: BlackboxLowUptime30d
|
|
annotations:
|
|
dashboard_url: https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?instance={{
|
|
$labels.instance }}
|
|
description: The probe has a lower uptime than 99.9% the last 30 days for the
|
|
instance {{ $labels.instance }}.
|
|
summary: Probe uptime is lower than 99.9% for the last 30 days.
|
|
expr: |
|
|
avg_over_time(probe_success{job="blackbox-exporter"}[30d]) * 100 < 99.900000000000006
|
|
labels:
|
|
severity: info
|
|
- alert: BlackboxSslCertificateWillExpireSoon
|
|
annotations:
|
|
dashboard_url: https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?instance={{
|
|
$labels.instance }}
|
|
description: |
|
|
The SSL certificate of the instance {{ $labels.instance }} is expiring within 21 days.
|
|
Actual time left: {{ $value | humanizeDuration }}.
|
|
summary: SSL certificate will expire soon.
|
|
expr: |
|
|
probe_ssl_earliest_cert_expiry{job="blackbox-exporter"} - time() < 21 * 24 * 3600
|
|
labels:
|
|
severity: warning
|