mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-28 15:46:36 +00:00
*: don't exclude resources, if empty exclude is empty. (#1680)
This commit is contained in:
@@ -100,12 +100,12 @@ func NewWithFlags(app *kingpin.Application) *Collector {
|
||||
app.Flag(
|
||||
"collector.net.nic-exclude",
|
||||
"Regexp of NIC:s to exclude. NIC name must both match include and not match exclude to be included.",
|
||||
).Default(c.config.NicExclude.String()).StringVar(&nicExclude)
|
||||
).Default("").StringVar(&nicExclude)
|
||||
|
||||
app.Flag(
|
||||
"collector.net.nic-include",
|
||||
"Regexp of NIC:s to include. NIC name must both match include and not match exclude to be included.",
|
||||
).Default(c.config.NicInclude.String()).StringVar(&nicInclude)
|
||||
).Default(".+").StringVar(&nicInclude)
|
||||
|
||||
app.Flag(
|
||||
"collector.net.enabled",
|
||||
|
||||
Reference in New Issue
Block a user