Skip to content

Commit

Permalink
chore: remove unused network metric in hardware service
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Oct 6, 2023
1 parent 42f1cc9 commit 1849852
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1849852

Please sign in to comment.