File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 248
248
description: '{{ $labels.instance }} replication slots have not been updated for a significant period, indicating potential issues with replication.' ,
249
249
summary: 'PostgreSQL replication slots are stale.' ,
250
250
},
251
- expr: 'pg_replication_slots_xmin_age{, slot_name =~ "^repmgr_slot_[0-9]+"} > 20000' ,
251
+ expr: 'pg_replication_slots_xmin_age{slot_name =~ "^repmgr_slot_[0-9]+"} > 20000' ,
252
252
'for' : '30m' ,
253
253
labels: {
254
254
severity: 'critical' ,
285
285
},
286
286
expr: |||
287
287
(sum without(relname) (
288
- pg_stat_user_tables_n_dead_tup{, %(dbNameFilter)s}
288
+ pg_stat_user_tables_n_dead_tup{%(dbNameFilter)s}
289
289
) > 10000) /
290
290
((sum without(relname) (
291
- pg_stat_user_tables_n_live_tup{, %(dbNameFilter)s}
291
+ pg_stat_user_tables_n_live_tup{%(dbNameFilter)s}
292
292
) + sum without(relname)(
293
- pg_stat_user_tables_n_dead_tup{, %(dbNameFilter)s}
293
+ pg_stat_user_tables_n_dead_tup{%(dbNameFilter)s}
294
294
)) > 0) >= 0.1 unless on(instance) (
295
295
pg_replication_is_replica{} == 1
296
296
)
You can’t perform that action at this time.
0 commit comments