Fix collector.process.iis flag
Signed-off-by: Jaco van Zyl <mail@jaco.vanzyl@derivco.co.im> Signed-off-by: jaco-van-zyl-derivco <104196755+jaco-van-zyl-derivco@users.noreply.github.com>
This commit is contained in:
parent
a02d0257b3
commit
548b970288
|
@ -19,9 +19,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Name = "process"
|
Name = "process"
|
||||||
FlagProcessExclude = "collector.process.exclude"
|
FlagProcessExclude = "collector.process.exclude"
|
||||||
FlagProcessInclude = "collector.process.include"
|
FlagProcessInclude = "collector.process.include"
|
||||||
|
FlagEnableWorkerProcess = "collector.process.iis"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
@ -91,7 +92,7 @@ func NewWithFlags(app *kingpin.Application) types.Collector {
|
||||||
).Default(ConfigDefaults.ProcessExclude).String(),
|
).Default(ConfigDefaults.ProcessExclude).String(),
|
||||||
|
|
||||||
enableWorkerProcess: app.Flag(
|
enableWorkerProcess: app.Flag(
|
||||||
"collector.process.iis",
|
FlagEnableWorkerProcess,
|
||||||
"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(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue