Skip to content

Commit cc5c1f4

Browse files
author
Muhammad Shahzeb
committed
Remove xlog related alerts
1 parent 44ecfb7 commit cc5c1f4

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

postgres_mixin/alerts/postgres.libsonnet

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -165,42 +165,6 @@
165165
severity: 'warning',
166166
},
167167
},
168-
{
169-
alert: 'PostgresXLOGConsumptionVeryLow',
170-
annotations: {
171-
description: 'PostgreSQL instance {{ $labels.instance }} has a very low XLOG consumption rate.',
172-
summary: 'PostgreSQL XLOG consumption is very low.',
173-
},
174-
expr: 'rate(pg_xlog_position_bytes{}[5m]) < 200000',
175-
'for': '5m',
176-
labels: {
177-
severity: 'critical',
178-
},
179-
},
180-
{
181-
alert: 'PostgresXLOGConsumptionVeryHigh',
182-
annotations: {
183-
description: '{{ $labels.instance }} is experiencing very high XLOG consumption rate, which might indicate excessive write operations.',
184-
summary: 'PostgreSQL very high XLOG consumption rate.',
185-
},
186-
expr: 'rate(pg_xlog_position_bytes{}[2m]) > 36700160 and on (instance) (pg_replication_is_replica{} == 0)',
187-
'for': '10m',
188-
labels: {
189-
severity: 'critical',
190-
},
191-
},
192-
{
193-
alert: 'PostgresReplicationStopped',
194-
annotations: {
195-
description: 'PostgreSQL instance {{ $labels.instance }} has stopped replication.',
196-
summary: 'PostgreSQL replication has stopped.',
197-
},
198-
expr: 'pg_stat_replication_pg_xlog_location_diff{} != 0',
199-
'for': '5m',
200-
labels: {
201-
severity: 'critical',
202-
},
203-
},
204168
{
205169
alert: 'PostgresReplicationLaggingMore1Hour',
206170
annotations: {
@@ -213,23 +177,6 @@
213177
severity: 'warning',
214178
},
215179
},
216-
{
217-
alert: 'PostgresReplicationLagBytesAreTooLarge',
218-
annotations: {
219-
description: '{{ $labels.instance }} replication lag in bytes is too large, which might indicate replication issues or network bottlenecks.',
220-
summary: 'PostgreSQL replication lag in bytes too large.',
221-
},
222-
expr: |||
223-
(pg_xlog_position_bytes{} and pg_replication_is_replica{} == 0)
224-
- on (job, service) group_right(instance) (
225-
pg_xlog_position_bytes{} and pg_replication_is_replica{} == 1
226-
) > 1e+09
227-
|||,
228-
'for': '5m',
229-
labels: {
230-
severity: 'critical',
231-
},
232-
},
233180
{
234181
alert: 'PostgresHasReplicationSlotUsed',
235182
annotations: {

0 commit comments

Comments
 (0)