mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-02 16:46:35 +00:00
service: [0.27.x] fix panic with NewWithConfig code path (#1646)
Co-authored-by: Erik Baranowski <erik.r.baranowski@gmail.com>
This commit is contained in:
@@ -58,6 +58,7 @@ func New(logger log.Logger, config *Config) *Collector {
|
|||||||
c := &Collector{
|
c := &Collector{
|
||||||
serviceWhereClause: &config.ServiceWhereClause,
|
serviceWhereClause: &config.ServiceWhereClause,
|
||||||
useAPI: &config.UseAPI,
|
useAPI: &config.UseAPI,
|
||||||
|
v2: &config.V2,
|
||||||
}
|
}
|
||||||
c.SetLogger(logger)
|
c.SetLogger(logger)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user