Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
runbooks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
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
Show 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:
$value | humanizeDuration }}
runbook
:
troubleshooting/postgres.md#replication-is-lagging-or-has-stopped
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
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"}
...
...
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