fix(monitor): fix agent monitor query

1.修复agent监控查询图表显示id的问题
This commit is contained in:
zhaoxiangchun
2021-06-18 18:52:34 +08:00
parent 2b390f0a1e
commit 40f33db2a2
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ var (
METRIC_RES_TYPE_OSS: "oss_name",
METRIC_RES_TYPE_CLOUDACCOUNT: "cloudaccount_name",
METRIC_RES_TYPE_STORAGE: "storage_name",
METRIC_RES_TYPE_AGENT: "vm_name",
}
MEASUREMENT_TAG_ID = map[string]string{
METRIC_RES_TYPE_HOST: "host_id",
+2
View File
@@ -752,6 +752,8 @@ func (c *QueryCondition) getTagKeyRelationMap() map[string]string {
relationMap = monitor.DomainTags
case monitor.METRIC_RES_TYPE_STORAGE:
relationMap = monitor.StorageTags
case monitor.METRIC_RES_TYPE_AGENT:
relationMap = monitor.ServerTags
default:
relationMap = monitor.HostTags
}