From 166887e98892fc8a7fde409de9af5f10cb28b193 Mon Sep 17 00:00:00 2001 From: Alexey Mukas <91831719+ritbl@users.noreply.github.com> Date: Wed, 2 Nov 2022 08:54:33 +0100 Subject: [PATCH] PMM-10586: basic alerts tracking (#1350) --- managed/services/telemetry/config.default.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/managed/services/telemetry/config.default.yml b/managed/services/telemetry/config.default.yml index 466926bd87..8894ca0725 100644 --- a/managed/services/telemetry/config.default.yml +++ b/managed/services/telemetry/config.default.yml @@ -8,6 +8,22 @@ telemetry: - metric_name: "pmm_server_ia_enabled" column: "ia_enabled" + - id: PMMServerAlertsFire + source: VM + query: max_over_time(grafana_alerting_alerts{state="alerting"}[24h]) + summary: "Maximum number of active concurrent alerts in the last 24 hours" + data: + - metric_name: "pmm_server_alerts_firing_max_24h" + value: 1 + + - id: PMMServerAlertRulesNumber + source: VM + query: grafana_alerting_schedule_alert_rules + summary: "Number of Alerts configured" + data: + - metric_name: "pmm_server_alert_rules_number" + value: 1 + - id: PMMServerSTTEnabled source: PMMDB_SELECT query: (CASE WHEN stt->'stt_disabled' = 'false' THEN '1' ELSE '0' END) AS stt_enabled FROM settings s, jsonb_extract_path(s.settings, 'sass') AS stt