mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-24 13:46:36 +00:00
Merge pull request #1397 from DiniFarb/issue_#1390
fix(#1390): global kingpin instead of app var
This commit is contained in:
@@ -90,7 +90,7 @@ func NewWithFlags(app *kingpin.Application) types.Collector {
|
|||||||
"Regexp of processes to exclude. Process name must both match include and not match exclude to be included.",
|
"Regexp of processes to exclude. Process name must both match include and not match exclude to be included.",
|
||||||
).Default(ConfigDefaults.ProcessExclude).String(),
|
).Default(ConfigDefaults.ProcessExclude).String(),
|
||||||
|
|
||||||
enableWorkerProcess: kingpin.Flag(
|
enableWorkerProcess: app.Flag(
|
||||||
"collector.process.iis",
|
"collector.process.iis",
|
||||||
"Enable IIS worker process name queries. May cause the collector to leak memory.",
|
"Enable IIS worker process name queries. May cause the collector to leak memory.",
|
||||||
).Default("false").Bool(),
|
).Default("false").Bool(),
|
||||||
|
|||||||
Reference in New Issue
Block a user