routest
routest
- Test your Alertmanager route configuration! 🔔
This tool will only be able to read a config file from stdin
at the moment.
Install
From source
git clone https://github.com/mikejoh/routest.git
cd routest
make build
(places the compiled binary in ./build/
make install
(copies the compiled binary to ~/.local/bin
)
Download and run
- Download (using version
0.1.0
as an example):
curl -LO https://github.com/mikejoh/routest/releases/download/0.1.0/routest_0.1.0_linux_amd64.tar.gz
- Unpack:
tar xzvf routest_0.1.3_linux_amd64.tar.gz
- Run:
./routest -version
Usage
Example (from stdin
and Alertmanager configuration from Kubernetes):
kubectl get secrets -n kube-prometheus-stack alertmanager -o jsonpath='{.data.alertmanager\.yaml}' | base64 -d | routest -labels="mylabel=myvalue,severity=critical" -
2024/06/04 23:21:40 Testing with labels: mylabel=myvalue,severity=critical
2024/06/04 23:21:40 Matches receiver: send_to_receiver
Todo
- Add support for reading from a file.
- Add support for reading from a URL.