mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-09-19 20:39:03 +02:00
service: [0.28.x] fix panic with NewWithConfig code path (#1647)
Co-authored-by: Erik Baranowski <erik.r.baranowski@gmail.com>
This commit is contained in:
co-authored by
Erik Baranowski
parent
9febf1e97c
commit
bf6688c1fb
@@ -58,6 +58,7 @@ func New(config *Config) *Collector {
|
||||
c := &Collector{
|
||||
serviceWhereClause: &config.ServiceWhereClause,
|
||||
useAPI: &config.UseAPI,
|
||||
v2: &config.V2,
|
||||
}
|
||||
|
||||
return c
|
||||
|
||||
Reference in New Issue
Block a user