Skip to content

Commit

Permalink
[PLAT-13633] Fix incorrect alert template message
Browse files Browse the repository at this point in the history
Summary: Initial diff had alert message without properly escaped double quotes. Fixing that + applying to existing alert rules via DB migration.

Test Plan: Tested manually

Reviewers: skurapati, vbansal

Reviewed By: skurapati

Subscribers: sanketh, yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D34390
  • Loading branch information
anmalysh-yb committed Apr 23, 2024
1 parent b467b27 commit d2f6d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public enum AlertTemplate {
"count by (universe_uuid) (last_over_time(yb_node_clock_skew_check"
+ "{node_prefix=\"__nodePrefix__\"}[1m]) < 1) "
+ "{{ query_condition }} {{ query_threshold }}",
"Clock sync check failed on {{ $value | printf \"%.0f\" }} nodes(s)"
"Clock sync check failed on {{ $value | printf \\\"%.0f\\\" }} nodes(s)"
+ " for universe '{{ $labels.source_name }}'.",
0,
EnumSet.of(DefinitionSettings.CREATE_FOR_NEW_CUSTOMER),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Copyright (c) YugaByte, Inc.


update alert_definition set config_written = false where configuration_uuid IN
(select uuid from alert_configuration where template = 'CLOCK_SYNC_CHECK_FAILED');

0 comments on commit d2f6d93

Please sign in to comment.