cortex-tools
cortex-tools copied to clipboard
Add namespace flag to configure rules commands
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.
This is already possible with the following format:
namespace: namespaceName
groups:
- name: group_1
rules:
<...>