prometheus/cmd/promtool
machine424 c5a1cc9148
chore(tsdb): add a sandboxDir to DBReadOnly, the directory can be used for transient file writes.
use it in loadDataAsQueryable to make sure the RO Head doesn't truncate or cut new chunks in data/chunks_head/.

add a -sandbox-dir-root flag to "promtool tsdb dump/dump-openmetrics" to control the root of that sandbox dirrectory.

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2024-04-15 17:00:25 +02:00
..
testdata Fix yaml file format and clear ci errors 2024-03-21 11:32:02 +08:00
analyze.go Add analyze histograms command to promtool (#12331) 2024-01-10 17:32:36 +01:00
analyze_test.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.go chore(tsdb): add a sandboxDir to DBReadOnly, the directory can be used for transient file writes. 2024-04-15 17:00:25 +02:00
backfill_test.go Tests: use replacement DeepEquals using go-cmp 2024-02-08 19:30:20 +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.go chore(tsdb): add a sandboxDir to DBReadOnly, the directory can be used for transient file writes. 2024-04-15 17:00:25 +02:00
main_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +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.go refactor: utilize standard functions max/min 2024-04-04 03:15:38 +09:00
rules_test.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
sd.go promtool: use go-cmp instead of DeepEqual 2024-02-08 19:30:20 +00:00
sd_test.go Tests: use replacement DeepEquals using go-cmp 2024-02-08 19:30:20 +00:00
tsdb.go chore(tsdb): add a sandboxDir to DBReadOnly, the directory can be used for transient file writes. 2024-04-15 17:00:25 +02:00
tsdb_test.go chore(tsdb): add a sandboxDir to DBReadOnly, the directory can be used for transient file writes. 2024-04-15 17:00:25 +02:00
unittest.go promtool: Avoid using testify for user rule tests 2024-03-21 22:08:10 +11:00
unittest_test.go Refactor cmd tests to use testify. 2024-02-01 13:51:31 +00:00