Changes
- [FEATURE] Add
rules check
command. It runs various best practice checks against rules.
- [ENHANCEMENT] Ensure
rules prepare
takes into account Vector Matching on PromQL Binary Expressions.
Installation
cortextool
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/cortextool" "https://github.com/grafana/cortex-tools/releases/download/v0.2.1/cortextool-linux-amd64"
# make it executable
$ chmod a+x "/usr/local/bin/cortextool"
# have fun :)
$ cortextool --help
chunktool
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/chunktool" "https://github.com/grafana/cortex-tools/releases/download/v0.2.1/chunktool-linux-amd64"
# make it executable
$ chmod a+x "/usr/local/bin/chunktool"
# have fun :)
$ chunktool --help
logtool
# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/logtool" "https://github.com/grafana/cortex-tools/releases/download/v0.2.1/logtool-linux-amd64"
# make it executable
$ chmod a+x "/usr/local/bin/logtool"
# have fun :)
$ logtool --help