prometheus/cmd/promtool
Hoa 7c0801a926 promtool: add --header flag to query instant command
The `--header` flag was already supported by `promtool query range` but was
missing from `promtool query instant`. This adds the same flag so users can
pass extra HTTP headers (e.g. `X-Scope-OrgID` for multi-tenant setups)
without needing to create an `--http.config.file`.

```
[ENHANCEMENT] promtool: Add `--header` flag to `query instant` command, matching existing `query range` behaviour.
```

Signed-off-by: Hoa <hoameomu@gmail.com>
2026-04-01 17:10:56 +08:00
..
testdata promtool: support missing promql syntax features (#17926) 2026-02-09 07:26:37 +00:00
analyze.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
analyze_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
archive.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
backfill.go Refractor promtool errors (#17842) 2026-01-13 06:35:11 +00:00
backfill_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
debug.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
main.go promtool: add --header flag to query instant command 2026-04-01 17:10:56 +08:00
main_test.go promtool: add --header flag to query instant command 2026-04-01 17:10:56 +08:00
metrics.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
metrics_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
query.go promtool: add --header flag to query instant command 2026-04-01 17:10:56 +08:00
rules.go Replace per-component parser options with default instance 2026-02-11 11:16:04 +01:00
rules_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
sd.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
sd_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
tsdb.go chore: fix emptyStringTest issues from gocritic (#18226) 2026-03-04 08:24:50 +01:00
tsdb_posix_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
tsdb_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
unittest.go promtool: redirect debug output to stderr (#18346) 2026-03-24 12:12:54 +01:00
unittest_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00