From 4fa4cadb69f42e2209aaa9517b3617a687f9c089 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Thu, 7 Aug 2025 22:26:11 +0800 Subject: [PATCH] fix: host metrics tag add hypervisor (#23034) Co-authored-by: Qiu Jian --- pkg/hostman/hostinfo/hostinfo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index ff223af82c..02c37e8169 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -2539,6 +2539,8 @@ func (h *SHostInfo) OnCatalogChanged(catalog mcclient.KeystoneServiceCatalogV3) hostconsts.TELEGRAF_TAG_KEY_BRAND: hostconsts.TELEGRAF_TAG_ONECLOUD_BRAND, hostconsts.TELEGRAF_TAG_KEY_RES_TYPE: hostconsts.TELEGRAF_TAG_ONECLOUD_RES_TYPE, hostconsts.TELEGRAF_TAG_KEY_HOST_TYPE: hostconsts.TELEGRAF_TAG_ONECLOUD_HOST_TYPE_HOST, + + hostconsts.TELEGRAF_TAG_KEY_HYPERVISOR: options.HostOptions.HostType, } conf["nics"] = h.getNicsTelegrafConf() urls, _ := s.GetServiceURLs("kafka", defaultEndpointType)