promtool-server

command module
v0.0.0-...-b488af8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 5 Imported by: 0

README

Promtool Server

Simple Web Application/API to run unit test for PromQL(alerting rules & recording rules) by using prometheus/promtool.

Execute promtool

Endpoint looks : /promtool/<command>/<subcommand>/<flag>

You can give any arguments & flags to promtool as url params.

Endpoint example

If you would like exec promtool --version, endpoint is /promtool/--version

If you would like exec promtool check --help, endpoint is /promtool/check/--help

Docker build & run

Do not forget to publish 1323 port.

# example
docker build -t promtool-server .
docker run -p 1323:1323 -it promtool-server

License

MIT License. see LICENSE

Author

Teppei Sudo (https://github.com/sp-yduck)

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