From e1166a71a6ddb2fcd9f21e8edc13a70fb2b6e103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 17 Sep 2025 16:40:27 +0800 Subject: [PATCH] fix(cloudmon): alert metric with tenant id (#23314) --- pkg/apis/monitor/alertrecord.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/apis/monitor/alertrecord.go b/pkg/apis/monitor/alertrecord.go index 87e36472f8..c5a6b12344 100644 --- a/pkg/apis/monitor/alertrecord.go +++ b/pkg/apis/monitor/alertrecord.go @@ -97,11 +97,11 @@ type AlertRecordHistoryAlertData struct { func (self AlertRecordHistoryAlertData) GetMetricTags() map[string]string { return map[string]string{ - "project_id": self.ProjectId, - "domain_id": self.DomainId, - "domain": self.Domain, - "project": self.Project, - "res_type": self.ResType, + "tenant_id": self.ProjectId, + "domain_id": self.DomainId, + "domain": self.Domain, + "tenant": self.Project, + "res_type": self.ResType, } }