From 941019ebc959a78c2ce695d0a66fe3fa583d8404 Mon Sep 17 00:00:00 2001 From: dinifarb Date: Mon, 29 Jan 2024 07:55:37 +0100 Subject: [PATCH] fix(#1390): global kingpin instead of app var Signed-off-by: dinifarb Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com> --- pkg/collector/process/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collector/process/process.go b/pkg/collector/process/process.go index 70cad74f..9ef04762 100644 --- a/pkg/collector/process/process.go +++ b/pkg/collector/process/process.go @@ -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.", ).Default(ConfigDefaults.ProcessExclude).String(), - enableWorkerProcess: kingpin.Flag( + enableWorkerProcess: app.Flag( "collector.process.iis", "Enable IIS worker process name queries. May cause the collector to leak memory.", ).Default("false").Bool(),