diff --git a/managed/src/main/java/com/yugabyte/yw/common/AlertTemplate.java b/managed/src/main/java/com/yugabyte/yw/common/AlertTemplate.java index 85b97efd27c7..4b117690f7dd 100644 --- a/managed/src/main/java/com/yugabyte/yw/common/AlertTemplate.java +++ b/managed/src/main/java/com/yugabyte/yw/common/AlertTemplate.java @@ -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), diff --git a/managed/src/main/resources/db/migration/default/postgres/V342.1__Fix_Clock_Sync_Failed_Alert.sql b/managed/src/main/resources/db/migration/default/postgres/V342.1__Fix_Clock_Sync_Failed_Alert.sql new file mode 100644 index 000000000000..3e849509c5c7 --- /dev/null +++ b/managed/src/main/resources/db/migration/default/postgres/V342.1__Fix_Clock_Sync_Failed_Alert.sql @@ -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');