Skip to content

Commit fdecbee

Browse files
authored
Merge pull request #9 from treydock/fix-output
Fix enabling output metric
2 parents d5cc696 + 758c4d0 commit fdecbee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ssh_exporter.go

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func metricsHandler(c *config.Config, logger log.Logger) http.HandlerFunc {
5858
http.Error(w, fmt.Sprintf("Unknown module %s", t), http.StatusNotFound)
5959
return
6060
}
61+
level.Debug(logger).Log("msg", "Loaded module", "module", module.ModuleName)
6162

6263
target := &config.Target{
6364
Host: t,
@@ -69,6 +70,8 @@ func metricsHandler(c *config.Config, logger log.Logger) http.HandlerFunc {
6970
Timeout: module.Timeout,
7071
Command: module.Command,
7172
CommandExpect: module.CommandExpect,
73+
OutputMetric: module.OutputMetric,
74+
OutputTruncate: module.OutputTruncate,
7275
}
7376
sshCollector := collector.NewCollector(target, log.With(logger, "target", target.Host))
7477
registry.MustRegister(sshCollector)

0 commit comments

Comments
 (0)