cortex-tools icon indicating copy to clipboard operation
cortex-tools copied to clipboard

Add namespace flag to configure rules commands

Open jutley opened this issue 5 years ago • 2 comments

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.

jutley avatar Feb 07 '20 16:02 jutley

This is already possible with the following format:

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

hargut avatar Aug 25 '22 16:08 hargut

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

rohit907 avatar Aug 03 '23 15:08 rohit907