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

Allow cortextool rules load * (wildcard) as input. #208

Closed
DandyDeveloper opened this issue Aug 10, 2021 · 1 comment
Closed

Allow cortextool rules load * (wildcard) as input. #208

DandyDeveloper opened this issue Aug 10, 2021 · 1 comment

Comments

@DandyDeveloper
Copy link

DandyDeveloper commented Aug 10, 2021

Since a proper tree structure can be defined because namespaces/groups exist for rules. It'd be nice if we could just wildcard the input to load all files in a directory via cortextool.

For exmaple;
Directory structure

tenant_a:
  rules:
     a.yml
     b.yml
     c.yml

tenant_b:
  rules:
     x.yml
     y.yml
     z.yml

Load in by calling cortextool rules load ./rules/tenant_a/*. This would load in rules a,b,c and vice-versa for alertmanager config and templates.

@DandyDeveloper
Copy link
Author

Apparently this already exists and works... I swear this didn't like 3 weeks ago.

Sorry

friedrichg pushed a commit to cortexproject/cortex-tools that referenced this issue Aug 1, 2023
* introduce cortex-helm-chart wiki

Signed-off-by: ShuzZzle <niclas.schad@gmail.com>

* remove unused file

Signed-off-by: ShuzZzle <niclas.schad@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant