promql-labelinjector

command module
v0.0.0-...-919133e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

README

promql-labelinjector

promql-labelinjector is a tool to inject/overwrite labels in a PromQL-expression.

Closely related to the PromAuthProxy.

manually
# actually build and run
git clone https://github.com/cherti/promql-labelinjector.git
cd promql-labelinjector
go get ./...
go build promql-labelinjector.go
./promql-labelinjector -l job -v developer -e up
automatically using go-toolchain
go get -u "github.com/cherti/promql-labelinjector"
./promql-labelinjector -l job -v developer -e up

Usage

promql-labelinjector -l <labelname> -v <labelvalue> -e <promql-expression> prints the promql-expression given with every metric having the specified label overwritten with the specified value or injected if it wasn't provided.

License

This works is released under the GNU General Public License v3. You can find a copy of this license in the file LICENSE or at https://www.gnu.org/licenses/gpl-3.0.txt.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL