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
|
||||
systemdUnitExcludePattern *regexp.Regexp
|
||||
logger log.Logger
|
||||
config NodeCollectorConfig
|
||||
config *NodeCollectorConfig
|
||||
}
|
||||
|
||||
var unitStatesName = []string{"active", "activating", "deactivating", "inactive", "failed"}
|
||||
|
@ -154,6 +154,7 @@ func NewSystemdCollector(config *NodeCollectorConfig, logger log.Logger) (Collec
|
|||
systemdUnitIncludePattern: systemdUnitIncludePattern,
|
||||
systemdUnitExcludePattern: systemdUnitExcludePattern,
|
||||
logger: logger,
|
||||
config: config,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue