cortex-tools
cortex-tools copied to clipboard
If you're using this tool with Grafana Mimir, please switch to "mimirtool" instead: https://github.com/grafana/mimir
Given `bug.yaml`: ``` namespace: bug groups: - name: bug rules: - alert: AlwaysFire expr: vector(1) ``` `cortextool rules lint --backend=loki bug.yaml` gives: ``` ERRO[0000] unable parse rules file error="could not...
Swap "created" and "updated" to set values correctly. Fixes #267.
At the moment, it is unclear what is the _exact_ difference between both commands. From a quick peek at the code it seems like load is more of a "only...
Currently, `rules sync` is reporting the number of groups created as the number of groups updated and vice versa. To fix, we need to have `created, updated, deleted` instead of...
perform minimal minor edits.
cortextool is the only frontend for now that also support uploading loki rules (not supported by mimirtool yet). However it is not longer compatible with any go version that is...
This is a WIP PR which analyses the usage of labels, and not just metric names. The idea is eventually we'll be able to identify labels we can drop /...
Fixes #236 Make sure you have `metrics-in-grafana.json` file in the directory. ```golang $ go run ./cmd/cortextool analyse prometheus --address --log.level="debug" --read-timeout=5m ```  Signed-off-by:...
I'm trying to tell Grafana which datasource to use for an alerting query, but I can't find any documentation for this in the rules YAML syntax. I see in the...
Hello! I think the README is missing documentation on how to construct an alert; the YAML syntax of the tool; how to manage groups of rules and notifications. A simple...