-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-16463][dr] Create an alert for safetime
Summary: This diff adds the alert for the xCluster transactional safe time lag. It also removes the extra status `ReplicationError` and uses `Error` instead. Test Plan: Slowed the network connection between the source and target universes' nodes and observed that the safe time lag alert is being fired. Reviewers: #yba-api-review!, cwang, amalyshev, vbansal, nbhatia Reviewed By: amalyshev Subscribers: sanketh, yugaware Differential Revision: https://phorge.dev.yugabyte.com/D41385
- Loading branch information
1 parent
3dcce62
commit f6042c9
Showing
11 changed files
with
65 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
managed/src/main/resources/db/migration/default_/postgres/V390__Alert_Safetime_Lag.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- Copyright (c) YugaByte, Inc. | ||
|
||
-- Clock skew alert | ||
INSERT INTO alert_configuration | ||
(uuid, customer_uuid, name, description, create_time, target_type, target, thresholds, threshold_unit, template, active, default_destination) | ||
SELECT | ||
gen_random_uuid(), | ||
uuid, | ||
'XCluster Transactional Safe Time Lag', | ||
'Max xCluster transactional safe time lag for 10 minutes in ms on the target universe is above threshold; Safe time on the target universe has not progressed for a long time', | ||
current_timestamp, | ||
'UNIVERSE', | ||
'{"all":true}', | ||
'{"SEVERE":{"condition":"GREATER_THAN", "threshold":180000.0}}', | ||
'MILLISECOND', | ||
'SAFETIME_LAG', | ||
true, | ||
true | ||
FROM customer; | ||
|
||
SELECT create_universe_alert_definitions('XCluster Transactional Safe Time Lag'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.