From a5595f30f77c2c5c45a84f87785fb62f27dfc184 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Fri, 10 Feb 2023 21:52:36 +0900 Subject: [PATCH] Add `prometheus` alert rule for `exporter_proxy`. --- .../files/etc/prometheus.d/alerts/services.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cookbooks/prometheus/files/etc/prometheus.d/alerts/services.yml b/cookbooks/prometheus/files/etc/prometheus.d/alerts/services.yml index 2617e34..a043706 100644 --- a/cookbooks/prometheus/files/etc/prometheus.d/alerts/services.yml +++ b/cookbooks/prometheus/files/etc/prometheus.d/alerts/services.yml @@ -63,3 +63,12 @@ groups: annotations: summary: "vector-filestat_exporter is not running: {{ $labels.instance }}." description: "vector-filestat_exporter is not running: {{ $labels.instance }}." + + - alert: exporter_proxy + expr: node_systemd_unit_state{name="exporter_proxy.service", state="active"} != 1 + for: 5m + labels: + severity: error + annotations: + summary: "exporter_proxy is not running: {{ $labels.instance }}." + description: "exporter_proxy is not running: {{ $labels.instance }}."