Skip to content

Commit 2dcce78

Browse files
genofireBeryJu
authored andcommitted
fix: improve prometheusrules (to show more labels and fix messages)
Signed-off-by: genofire <[email protected]>
1 parent 9c3362e commit 2dcce78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

charts/authentik/templates/prometheusrule.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -127,24 +127,24 @@ spec:
127127
- alert: NoWorkersConnected
128128
labels:
129129
severity: critical
130-
expr: max without (pid) (authentik_admin_workers) < 1
130+
expr: max without (endpoint,instance,container,job,service) (authentik_admin_workers) < 1
131131
for: 10m
132132
annotations:
133133
{{`
134134
summary: No workers connected
135-
message: authentik instance {{ $labels.instance }}'s worker are either not running or not connected.
135+
message: authentik instance {{ $labels.pod }}'s worker are either not running or not connected.
136136
`}}
137137
138138
139139
- alert: PendingMigrations
140140
labels:
141141
severity: critical
142-
expr: max without (pid) (django_migrations_unapplied_total) > 0
142+
expr: max without (endpoint,instance,container,job,service) (django_migrations_unapplied_total) > 0
143143
for: 10m
144144
annotations:
145145
{{`
146146
summary: Pending database migrations
147-
message: authentik instance {{ $labels.instance }} has pending database migrations
147+
message: authentik instance {{ $labels.pod }} has pending database migrations
148148
`}}
149149
150150
- alert: FailedSystemTasks
@@ -161,7 +161,7 @@ spec:
161161
- alert: DisconnectedOutposts
162162
labels:
163163
severity: critical
164-
expr: sum by (outpost) (max without (pid) (authentik_outposts_connected{uid!~"specific.*"})) < 1
164+
expr: max without (endpoint,instance,container,pod,job,service) (authentik_outposts_connected{uid!~"specific.*"}) < 1
165165
for: 30m
166166
annotations:
167167
{{`

0 commit comments

Comments
 (0)