Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Jan 24, 2025
1 parent fb2eb51 commit 0d7e398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/static/integrations/snmp_exporter/snmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
const (
namespace = "snmp"
// This is the default value for snmp.module-concurrency in snmp_exporter.
// For now we set to 1 as we don't support multi-module handling.
// For now we set to 1.
// More info: https://github.com/prometheus/snmp_exporter#multi-module-handling
concurrency = 1
)
Expand Down Expand Up @@ -109,9 +109,9 @@ func Handler(w http.ResponseWriter, r *http.Request, logger log.Logger, snmpCfg
http.Error(w, fmt.Sprintf("Unknown walk_params '%s'", walkParams), http.StatusBadRequest)
return
}
logger = log.With(logger, "module", moduleName, "target", target, "walk_params", walkParams)
logger = log.With(logger, "module", moduleParam, "target", target, "walk_params", walkParams)
} else {
logger = log.With(logger, "module", moduleName, "target", target)
logger = log.With(logger, "module", moduleParam, "target", target)
}
nmodules = append(nmodules, collector.NewNamedModule(moduleName, module))
}
Expand Down

0 comments on commit 0d7e398

Please sign in to comment.