Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions managed/data/alerting-templates/mysql_replication_lag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
templates:
- name: mysql_replication_lag
version: 1
summary: MySQL replication lag
expr: |-
(mysql_slave_status_source_server_id > 0 and ON (instance) mysql_slave_status_seconds_behind_source > bool [[ .threshold ]])
params:
- name: threshold
summary: Time in seconds
unit: s
type: float
value: 300
for: 5m
severity: critical
annotations:
description: |-
MySQL Replication Lagging on {{ $labels.instance }}
VALUE = {{ $value }}
summary: MySQL Replication Lagging on (instance {{ $labels.instance }})
Loading