prometheus/cmd/promtool
George Krajcsovits 1b4e7f74e6
feat(tools): add debug printouts to rules unit testing (#15196)
* promtool: Add debug flag for rule tests

This makes it print out the tsdb state (both input_series and rules that
are run) at the end of a test, making reasoning about tests much easier.

Signed-off-by: David Leadbeater <dgl@dgl.cx>

* Reuse generated test name from junit testing

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

---------

Signed-off-by: David Leadbeater <dgl@dgl.cx>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Co-authored-by: David Leadbeater <dgl@dgl.cx>
2024-10-22 15:24:36 +02:00
..
testdata Disallowing configure AM with the v1 api (#13883) 2024-10-18 15:23:14 +02:00
analyze.go
analyze_test.go
archive.go
backfill.go
backfill_test.go
debug.go
main.go feat(tools): add debug printouts to rules unit testing (#15196) 2024-10-22 15:24:36 +02:00
main_test.go
metrics.go
query.go
rules.go
rules_test.go
sd.go
sd_test.go
tsdb.go
tsdb_test.go
unittest.go feat(tools): add debug printouts to rules unit testing (#15196) 2024-10-22 15:24:36 +02:00
unittest_test.go feat(tools): add debug printouts to rules unit testing (#15196) 2024-10-22 15:24:36 +02:00