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

Add namespace flag to configure rules commands #20

Open
jutley opened this issue Feb 7, 2020 · 2 comments
Open

Add namespace flag to configure rules commands #20

jutley opened this issue Feb 7, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@jutley
Copy link
Contributor

jutley commented Feb 7, 2020

Currently, cortextool always sets the namespace based on the name of the file. This behavior results in rule organization that feels quite unnatural. For example, if we want to define one alert per file, we end up with an absurd number of namespaces.

Additionally, not having control over the namespace makes the new sync functionality difficult to use. It allows us to ignore namespaces, but since there are so many namespaces that are dynamically created, this flag doesn't do anything particularly useful for us. We would much rather use sync with a specific namespace, then have all the changes applied within that namespace.

@jtlisi jtlisi added the enhancement New feature or request label Mar 10, 2020
@hargut
Copy link

hargut commented Aug 25, 2022

This is already possible with the following format:

namespace: namespaceName
groups:
    - name: group_1
      rules:
        <...>

@rohit907
Copy link

rohit907 commented Aug 3, 2023

Does the cortextool has the ability to perform delete rules based on the namespace itself? if so can you share the binary version that I can use to perform it.
.

mimirtool rules delete-namespace

Thanks is advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants