Skip to content

Commit

Permalink
PMM-10586: basic alerts tracking (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritbl committed Nov 2, 2022
1 parent 3e65511 commit 166887e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions managed/services/telemetry/config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 166887e

Please sign in to comment.