Add systemd unit alerts

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-16 09:36:21 +01:00
parent 88eead5aa4
commit 35fd86138d

View File

@@ -400,6 +400,54 @@ groups:
type: threshold
noDataState: NoData
execErrState: Error
isPaused: false
notification_settings:
receiver: ntfy.sh
- uid: systemd-units
title: SystemD Units
condition: C
data:
- refId: A
relativeTimeRange:
from: 600
to: 0
datasourceUid: prometheus
model:
editorMode: code
expr: node_systemd_units{state="failed"}
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: A
- refId: C
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 0
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
refId: C
type: threshold
noDataState: NoData
execErrState: Error
keepFiringFor: 1h
isPaused: false
notification_settings: