Remove tags for num cores and packages

This commit is contained in:
Holger Obermaier 2022-02-18 16:59:59 +01:00
parent 635a75c64b
commit 65c3106af2
2 changed files with 6 additions and 10 deletions

View File

@ -150,11 +150,9 @@ func (m *CPUFreqCpuInfoCollector) Init(config json.RawMessage) error {
t.numNonHT = numNonHT
t.numNonHT_int = numNonHT_int
t.tagSet = map[string]string{
"type": "cpu",
"type-id": t.processor,
"num_core": t.numNonHT,
"package_id": t.physicalPackageID,
"num_package": t.numPhysicalPackages,
"type": "cpu",
"type-id": t.processor,
"package_id": t.physicalPackageID,
}
}

View File

@ -161,11 +161,9 @@ func (m *CPUFreqCollector) Init(config json.RawMessage) error {
t.numNonHT = numNonHT
t.numNonHT_int = numNonHT_int
t.tagSet = map[string]string{
"type": "cpu",
"type-id": t.processor,
"num_core": t.numNonHT,
"package_id": t.physicalPackageID,
"num_package": t.numPhysicalPackages,
"type": "cpu",
"type-id": t.processor,
"package_id": t.physicalPackageID,
}
}