From 18498525a64c2474f35a5f1ccada44aa12fd5ee0 Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Fri, 6 Oct 2023 19:46:15 +0530 Subject: [PATCH] chore: remove unused network metric in hardware service --- cmd/init.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 1804aaa..ab46a52 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -112,11 +112,10 @@ func initMetricsManager(ko *koanf.Koanf) (*metrics.Manager, error) { func inithardwareSvc(ko *koanf.Koanf) (*hardwareService, error) { var ( queries = map[string]string{ - "cpu": ko.MustString("metrics.hardware.cpu"), - "memory": ko.MustString("metrics.hardware.memory"), - "disk": ko.MustString("metrics.hardware.disk"), - "uptime": ko.MustString("metrics.hardware.uptime"), - "network_packet_erro": ko.MustString("metrics.hardware.uptime"), + "cpu": ko.MustString("metrics.hardware.cpu"), + "memory": ko.MustString("metrics.hardware.memory"), + "disk": ko.MustString("metrics.hardware.disk"), + "uptime": ko.MustString("metrics.hardware.uptime"), } hosts = ko.Strings("metrics.hardware.hosts") cfgPath = ko.String("prometheus.config_path")