Demo to show what can be tested in the Prometheus ecosystem.
Commands are meant to be run from root of this repository.
promtool check config prometheus.yaml
cat metrics.txt | promtool check metrics
Terminal 1
pushd app/
go run main.go
popd
Terminal 2
curl http://localhost:8080/metrics | promtool check metrics
pushd app/
go test -v ./...
popd
promtool check rules rules.yaml
promtool test rules rules_test.yaml
promruval validate --config-file validation.yaml rules.yaml
amtool check-config alertmanager.yaml
amtool template render --template.glob notification_template.tmpl --template.data alert.json --template.text='{{ template "test" . }}'
amtool config routes test --config.file alertmanager.yaml --verify.receivers team-A --tree team=team-A