mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
Fix bug with ntp config not being set.
This commit is contained in:
parent
69c6eb312f
commit
af0fe37ac4
|
@ -41,7 +41,7 @@ var (
|
|||
type ntpCollector struct {
|
||||
stratum, leap, rtt, offset, reftime, rootDelay, rootDispersion, sanity typedDesc
|
||||
logger log.Logger
|
||||
config NodeCollectorConfig
|
||||
config *NodeCollectorConfig
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -113,6 +113,7 @@ func NewNtpCollector(config *NodeCollectorConfig, logger log.Logger) (Collector,
|
|||
nil, nil,
|
||||
), prometheus.GaugeValue},
|
||||
logger: logger,
|
||||
config: config,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue