prometheus/cmd/promtool
Will Hegedus bd1878700b
promtool: Fix panic on extended tsdb analyze (#13976)
Currently, running promtool tsdb analyze with the --extended flag
will cause an 'index out of range' error if running it
against a block that does not have any native histogram chunks.

This change ensures that promtool won't try to display data that doesn't exist.

Signed-off-by: Will Hegedus <whegedus@linode.com>
2024-04-24 11:35:34 +10:00
..
testdata Fix yaml file format and clear ci errors 2024-03-21 11:32:02 +08:00
analyze_test.go Add analyze histograms command to promtool (#12331) 2024-01-10 17:32:36 +01:00
analyze.go Add analyze histograms command to promtool (#12331) 2024-01-10 17:32:36 +01:00
archive.go Use github.com/klauspost/compress for gzip and zlib 2024-02-22 17:08:15 +00:00
backfill_test.go Tests: use replacement DeepEquals using go-cmp 2024-02-08 19:30:20 +00:00
backfill.go model/textparse: parsers take a labels SymbolTable 2024-02-26 11:45:25 +00:00
debug.go refactor (package cmd): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10733) 2022-05-24 16:58:59 +10:00
main_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
main.go golangci-lint: enable usestdlibvars linter 2024-04-08 19:26:23 +00:00
metrics.go Add a header to count retried remote write requests (#12729) 2023-09-20 11:11:03 +01:00
query.go Add analyze histograms command to promtool (#12331) 2024-01-10 17:32:36 +01:00
rules_test.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
rules.go refactor: utilize standard functions max/min 2024-04-04 03:15:38 +09:00
sd_test.go Tests: use replacement DeepEquals using go-cmp 2024-02-08 19:30:20 +00:00
sd.go promtool: use go-cmp instead of DeepEqual 2024-02-08 19:30:20 +00:00
tsdb_test.go promtool: add a "tsdb dump-openmetrics" to dump in OpemMetrics format. 2024-02-28 15:34:18 +01:00
tsdb.go promtool: Fix panic on extended tsdb analyze (#13976) 2024-04-24 11:35:34 +10:00
unittest_test.go Refactor cmd tests to use testify. 2024-02-01 13:51:31 +00:00
unittest.go promtool: Avoid using testify for user rule tests 2024-03-21 22:08:10 +11:00