Skip to content

Commit 44ecfb7

Browse files
author
Muhammad Shahzeb
committed
Fix errors
1 parent 1a2bb63 commit 44ecfb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

postgres_mixin/alerts/postgres.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
description: '{{ $labels.instance }} replication slots have not been updated for a significant period, indicating potential issues with replication.',
249249
summary: 'PostgreSQL replication slots are stale.',
250250
},
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',
252252
'for': '30m',
253253
labels: {
254254
severity: 'critical',
@@ -285,12 +285,12 @@
285285
},
286286
expr: |||
287287
(sum without(relname) (
288-
pg_stat_user_tables_n_dead_tup{, %(dbNameFilter)s}
288+
pg_stat_user_tables_n_dead_tup{%(dbNameFilter)s}
289289
) > 10000) /
290290
((sum without(relname) (
291-
pg_stat_user_tables_n_live_tup{, %(dbNameFilter)s}
291+
pg_stat_user_tables_n_live_tup{%(dbNameFilter)s}
292292
) + sum without(relname)(
293-
pg_stat_user_tables_n_dead_tup{, %(dbNameFilter)s}
293+
pg_stat_user_tables_n_dead_tup{%(dbNameFilter)s}
294294
)) > 0) >= 0.1 unless on(instance) (
295295
pg_replication_is_replica{} == 1
296296
)

0 commit comments

Comments
 (0)