Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Cookbooks
runbooks
Commits
70e5ef68
Unverified
Commit
70e5ef68
authored
Sep 28, 2018
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alert for replication lag of delayed replica.
parent
a98f3bcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
alerts/postgresqls.yml
alerts/postgresqls.yml
+12
-0
No files found.
alerts/postgresqls.yml
View file @
70e5ef68
...
@@ -133,6 +133,18 @@ groups:
...
@@ -133,6 +133,18 @@ groups:
$value | humanizeDuration }}
$value | humanizeDuration }}
runbook
:
troubleshooting/postgres.md#replication-is-lagging-or-has-stopped
runbook
:
troubleshooting/postgres.md#replication-is-lagging-or-has-stopped
title
:
Postgres Replication lag is over 12 hours on archive recovery replica
title
:
Postgres Replication lag is over 12 hours on archive recovery replica
-
alert
:
PostgreSQL_ReplicationLagTooLarge_DelayedReplica
expr
:
(pg_replication_lag > 43200) and ON(instance) (pg_replication_is_replica{type = "postgres-delayed"} == 1)
for
:
5m
labels
:
pager
:
pagerduty
severity
:
warn
channel
:
database
annotations
:
description
:
Replication lag on server {{$labels.instance}} is currently {{
$value | humanizeDuration }}
runbook
:
troubleshooting/postgres.md#replication-is-lagging-or-has-stopped
title
:
Postgres Replication lag is over 12 hours on delayed replica
-
alert
:
PostgreSQL_ReplicationLagBytesTooLarge
-
alert
:
PostgreSQL_ReplicationLagBytesTooLarge
expr
:
(pg_xlog_position_bytes and pg_replication_is_replica == 0) - ON(environment)
expr
:
(pg_xlog_position_bytes and pg_replication_is_replica == 0) - ON(environment)
GROUP_RIGHT(instance) (pg_xlog_position_bytes and pg_replication_is_replica{type = "postgres", fqdn != "postgres-01-db-gprd.c.gitlab-production.internal"}
GROUP_RIGHT(instance) (pg_xlog_position_bytes and pg_replication_is_replica{type = "postgres", fqdn != "postgres-01-db-gprd.c.gitlab-production.internal"}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment