Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file exclusion for multiple items #1721

Open
andonovski opened this issue Nov 8, 2024 · 1 comment
Open

Config file exclusion for multiple items #1721

andonovski opened this issue Nov 8, 2024 · 1 comment

Comments

@andonovski
Copy link

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

  • windows_exporter Version: 0.29.2
  • Windows Server Version: 2016
@jkroepke
Copy link
Member

jkroepke commented Nov 8, 2024

exclude uses the regex syntax.

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants