From c5203e94d009b50d4bb616ba7a6775a2bb9833a7 Mon Sep 17 00:00:00 2001 From: samber Date: Sun, 8 Dec 2024 20:29:15 +0000 Subject: [PATCH] Publish --- dist/rules/grafana-alloy/embedded-exporter.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dist/rules/grafana-alloy/embedded-exporter.yml diff --git a/dist/rules/grafana-alloy/embedded-exporter.yml b/dist/rules/grafana-alloy/embedded-exporter.yml new file mode 100644 index 000000000..d86c8a4ef --- /dev/null +++ b/dist/rules/grafana-alloy/embedded-exporter.yml @@ -0,0 +1,14 @@ +groups: + +- name: EmbeddedExporter + + rules: + + - alert: GrafanaAlloyServiceDown + expr: 'count by (instance) (alloy_build_info) unless count by (instance) (alloy_build_info offset 2m) ' + for: 0m + labels: + severity: critical + annotations: + summary: Grafana Alloy service down (instance {{ $labels.instance }}) + description: "Alloy on (instance {{ $labels.instance }}) is not responding or has stopped running.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"