prometheus-community / windows_exporter

Prometheus exporter for Windows machines
MIT License
2.92k stars 703 forks source link

Config file exclusion for multiple items #1721

Open andonovski opened 5 days ago

andonovski commented 5 days ago

Problem Statement

Not real problem, but I can't find anywhere how to do exclude multiple items in config file. For example this part: collector: scheduled_task: exclude: /Microsoft/.+

How to add more scheduled tasks to be excluded?

Thanks.

Environment

jkroepke commented 5 days ago

exclude uses the regex syntax.

With brackets and pipes, you can define and OR pattern.

https://regex101.com/r/2okl6U/1