@@ -120,30 +120,30 @@ spec:
120
120
- alert : NoWorkersConnected
121
121
labels :
122
122
severity : critical
123
- expr : max without (pid ) (authentik_admin_workers) < 1
123
+ expr : max without (endpoint,instance,container,job,service ) (authentik_admin_workers) < 1
124
124
for : 10m
125
125
annotations :
126
126
{{`
127
127
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.
129
129
` }}
130
130
131
131
132
132
- alert: PendingMigrations
133
133
labels:
134
134
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
136
136
for: 10m
137
137
annotations:
138
138
{{`
139
139
summary : Pending database migrations
140
- message : authentik instance {{ $labels.instance }} has pending database migrations
140
+ message : authentik instance {{ $labels.pod }} has pending database migrations
141
141
` }}
142
142
143
143
- alert: FailedSystemTasks
144
144
labels:
145
145
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
147
147
for: 2h
148
148
annotations:
149
149
{{`
@@ -154,7 +154,7 @@ spec:
154
154
- alert: DisconnectedOutposts
155
155
labels:
156
156
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
158
158
for: 30m
159
159
annotations:
160
160
{{`
0 commit comments