Skip to content
Snippets Groups Projects
Commit 7ca14c61 authored by Pablo Carranza's avatar Pablo Carranza
Browse files

Add replication lag alert

parent 88211549
No related branches found
No related tags found
1 merge request!242Add replication lag alert
ALERT ReplicationLagTooLarge
IF max(pg_replication_lag{fqdn=~".+cluster.gitlab.com"}) by (fqdn) > 120
FOR 1m
LABELS {severity="critical", pager="pagerduty"}
ANNOTATIONS {
title="Replication lag in server {{$labels.instance}} is over 2 minutes",
description="A high replication lag means that we are getting inconsistent results from queries in GitLab.com, generating confusion. Generally this is linked to high IO and table bloat. Investigate possible root causes in the postgres queries dashboard and consider disabling load balancing",
runbook="troubleshooting/postgresql_replication.md"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment