diff --git a/ansible/services/prometheus/prometheus.yml b/ansible/services/prometheus/prometheus.yml index 88ed3b6..110483b 100644 --- a/ansible/services/prometheus/prometheus.yml +++ b/ansible/services/prometheus/prometheus.yml @@ -8,6 +8,13 @@ global: scrape_interval: 15s evaluation_interval: 15s +# Alerting notifications are handled by Grafana (unified alerting with +# PagerDuty + email contact points), not Alertmanager. No alerting: +# section is needed here. Prometheus still evaluates these rule_files +# so the ALERTS / ALERTS_FOR_STATE metrics are available for queries. +rule_files: + - /usr/local/etc/prometheus/rules/*.rules + scrape_configs: - job_name: "prometheus" static_configs: diff --git a/ansible/services/prometheus/rules/node-exporter.rules b/ansible/services/prometheus/rules/node-exporter.rules deleted file mode 100644 index c9798fb..0000000 --- a/ansible/services/prometheus/rules/node-exporter.rules +++ /dev/null @@ -1,9 +0,0 @@ -groups: -- name: alerts - rules: -# - alert: ServerRunningBtrfs -# expr: node_btrfs_info > 0 -# for: 5m -# annotations: -# summary: "Server {{ $labels.job }} is running btrfs" -# description: "{{ $labels.job }} has uuid of '{{ $labels.uuid }}'" \ No newline at end of file