mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
Fix bug with systemd config not being set.
This commit is contained in:
parent
af0fe37ac4
commit
26e058a40f
|
@ -61,7 +61,7 @@ type systemdCollector struct {
|
||||||
systemdUnitIncludePattern *regexp.Regexp
|
systemdUnitIncludePattern *regexp.Regexp
|
||||||
systemdUnitExcludePattern *regexp.Regexp
|
systemdUnitExcludePattern *regexp.Regexp
|
||||||
logger log.Logger
|
logger log.Logger
|
||||||
config NodeCollectorConfig
|
config *NodeCollectorConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
var unitStatesName = []string{"active", "activating", "deactivating", "inactive", "failed"}
|
var unitStatesName = []string{"active", "activating", "deactivating", "inactive", "failed"}
|
||||||
|
@ -154,6 +154,7 @@ func NewSystemdCollector(config *NodeCollectorConfig, logger log.Logger) (Collec
|
||||||
systemdUnitIncludePattern: systemdUnitIncludePattern,
|
systemdUnitIncludePattern: systemdUnitIncludePattern,
|
||||||
systemdUnitExcludePattern: systemdUnitExcludePattern,
|
systemdUnitExcludePattern: systemdUnitExcludePattern,
|
||||||
logger: logger,
|
logger: logger,
|
||||||
|
config: config,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue