mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
Merge pull request #11819 from zhaoxiangchun/automated-cherry-pick-of-#11443-upstream-release-3.7
Automated cherry pick of #11443: fix(monitor): fix agent monitor query
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -754,6 +754,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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user