Skip to content

Commit cd66c0c

Browse files
authoredNov 29, 2023
fix: improve prometheusrules (to show more labels and fix messages)
Signed-off-by: genofire <[email protected]>
1 parent 8aab80b commit cd66c0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎charts/authentik/templates/prom-rules.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -120,30 +120,30 @@ spec:
120120
- alert: NoWorkersConnected
121121
labels:
122122
severity: critical
123-
expr: max without (pid) (authentik_admin_workers) < 1
123+
expr: max without (endpoint,instance,container,job,service) (authentik_admin_workers) < 1
124124
for: 10m
125125
annotations:
126126
{{`
127127
summary: No workers connected
128-
message: authentik instance {{ $labels.instance }}'s worker are either not running or not connected.
128+
message: authentik instance {{ $labels.pod }}'s worker are either not running or not connected.
129129
`}}
130130
131131
132132
- alert: PendingMigrations
133133
labels:
134134
severity: critical
135-
expr: max without (pid) (django_migrations_unapplied_total) > 0
135+
expr: max without (endpoint,instance,container,job,service) (django_migrations_unapplied_total) > 0
136136
for: 10m
137137
annotations:
138138
{{`
139139
summary: Pending database migrations
140-
message: authentik instance {{ $labels.instance }} has pending database migrations
140+
message: authentik instance {{ $labels.pod }} has pending database migrations
141141
`}}
142142
143143
- alert: FailedSystemTasks
144144
labels:
145145
severity: critical
146-
expr: sum(increase(authentik_system_tasks{status="error"}[2h])) > 0
146+
expr: sum(increase(authentik_system_tasks{status="error"}[2h])) without(endpoint,instance,pod,container,job,service,status,pid) > 0
147147
for: 2h
148148
annotations:
149149
{{`
@@ -154,7 +154,7 @@ spec:
154154
- alert: DisconnectedOutposts
155155
labels:
156156
severity: critical
157-
expr: sum by (outpost) (max without (pid) (authentik_outposts_connected{uid!~"specific.*"})) < 1
157+
expr: max without (endpoint,instance,container,pod,job,service) (authentik_outposts_connected{uid!~"specific.*"}) < 1
158158
for: 30m
159159
annotations:
160160
{{`

0 commit comments

Comments
 (0)