mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-21 20:26:36 +00:00
*: don't exclude resources, if empty exclude is empty. (#1680)
This commit is contained in:
@@ -92,12 +92,12 @@ func NewWithFlags(app *kingpin.Application) *Collector {
|
||||
app.Flag(
|
||||
"collector.process.exclude",
|
||||
"Regexp of processes to exclude. Process name must both match include and not match exclude to be included.",
|
||||
).Default(c.config.ProcessExclude.String()).StringVar(&processExclude)
|
||||
).Default("").StringVar(&processExclude)
|
||||
|
||||
app.Flag(
|
||||
"collector.process.include",
|
||||
"Regexp of processes to include. Process name must both match include and not match exclude to be included.",
|
||||
).Default(c.config.ProcessInclude.String()).StringVar(&processInclude)
|
||||
).Default(".+").StringVar(&processInclude)
|
||||
|
||||
app.Flag(
|
||||
"collector.process.iis",
|
||||
|
||||
Reference in New Issue
Block a user