Skip to content

Commit 0bfbf45

Browse files
author
lin.ma
committed
<fix>[zwatch]: VPC Router CPU alarm use external monitoring
Resolves: ZSTAC-81171 Change-Id: I7778676171646874706164777869707279776172
1 parent 8117a99 commit 0bfbf45

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

conf/db/upgrade/V5.5.12__schema.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,18 @@ CREATE TABLE IF NOT EXISTS `zstack`.`ExternalServiceConfigurationVO` (
4848
UPDATE VolumeSnapshotVO AS sp, PrimaryStorageVO AS ps
4949
SET sp.primaryStorageInstallPath = REPLACE(sp.primaryStorageInstallPath, '/dev/', 'sharedblock://')
5050
WHERE sp.primaryStorageUuid = ps.uuid AND ps.type = 'SharedBlock' AND sp.volumeType = 'Memory' AND sp.primaryStorageInstallPath LIKE '/dev/%';
51+
52+
UPDATE `zstack`.`ActiveAlarmTemplateVO`
53+
SET `metricName` = 'CPUUsedUtilization'
54+
WHERE `uuid` = 'c9e6cdca107140bea62b4ca919ff9e88'
55+
AND `metricName` = 'VRouterCPUAverageUsedUtilization';
56+
57+
UPDATE `zstack`.`AlarmVO`
58+
SET `metricName` = 'CPUUsedUtilization'
59+
WHERE `uuid` IN (
60+
SELECT `alarmUuid` FROM `zstack`.`ActiveAlarmVO`
61+
WHERE `templateUuid` = 'c9e6cdca107140bea62b4ca919ff9e88'
62+
)
63+
AND `metricName` = 'VRouterCPUAverageUsedUtilization';
64+
65+

0 commit comments

Comments
 (0)