diff --git a/managed/data/alerting-templates/mysql_replication_lag.yml b/managed/data/alerting-templates/mysql_replication_lag.yml new file mode 100644 index 00000000000..5e93e40d559 --- /dev/null +++ b/managed/data/alerting-templates/mysql_replication_lag.yml @@ -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 > [[ .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 }})