Skip to content

Releases: grafana/cortex-tools

v0.2.0 / 2020-06-02

02 Jun 20:23
b2f8e55

Choose a tag to compare

Changes

  • [FEATURE] Add rules prepare command. It allows you add a label to PromQL aggregations and lint your expressions in rule files.
  • [FEATURE] Add logtool tool. It parses Cortex query-frontend logs and formats them for easy analysis.

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.0/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.0/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.0/logtool-linux-amd64"

# make it executable
$ chmod a+x "/usr/local/bin/logtool"

# have fun :)
$ logtool --help

v0.1.4 / 2020-03-10

10 Mar 21:57
deb558b

Choose a tag to compare

Changes

  • [ENHANCEMENT] Add separate chunktool for operating on cortex chunk backends #23 #26
  • [ENHANCEMENT] Add --disable-color flag to rules print, rules diff, and alertmanager get command #25
  • [BUGFIX] alertmanager load command will ensure provided template files are also loaded #25
  • [BUGFIX] Ensure rules commands use escaped URLs when contacting cortex API #24

Installation

cortextool

# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/cortextool" "https://github.com/grafana/cortextool/releases/download/v0.1.4/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/cortextool/releases/download/v0.1.4/chunktool-linux-amd64"

# make it executable
$ chmod a+x "/usr/local/bin/chunktool"

# have fun :)
$ chunktool --help

v0.1.2 / 2019-12-18

18 Dec 17:03

Choose a tag to compare

Changes

  • [CHANGE] Info log when a resource does not exist instead of exiting fatally
  • [FEATURE] Windows build during Makefile cross compilation
  • [BUGFIX] Fix env var CORTEX_TENTANT_ID to CORTEX_TENANT_ID for rule commands

Installation

# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/cortextool" "https://github.com/grafana/cortextool/releases/download/v0.1.2/cortextool-linux-amd64"

# make it executable
$ chmod a+x "/usr/local/bin/cortextool"

# have fun :)
$ cortextool --help

Release v0.1.1 of cortextool

17 Dec 20:35

Choose a tag to compare

This is release v0.1.1 of the Cortex Tool (cortextool). Check out the CHANGELOG for detailed release notes.

Install Instructions

# download the binary (adapt os and arch as needed)
$ curl -fSL -o "/usr/local/bin/cortextool" "https://github.com/grafana/cortextool/releases/download/v0.1.1/cortextool-linux-amd64"

# make it executable
$ chmod a+x "/usr/local/bin/cortextool"

# have fun :)
$ cortextool --help