prometheus/cmd/promtool
Alan Protasio 606ef33d91 Track and report Samples Queried per query
We always track total samples queried and add those to the standard set
of stats queries can report.

We also allow optionally tracking per-step samples queried. This must be
enabled both at the engine and query level to be tracked and rendered.
The engine flag is exposed via a Prometheus feature flag, while the
query flag is set when stats=all.

Co-authored-by: Alan Protasio <approtas@amazon.com>
Co-authored-by: Andrew Bloomgarden <blmgrdn@amazon.com>
Co-authored-by: Harkishen Singh <harkishensingh@hotmail.com>
Signed-off-by: Andrew Bloomgarden <blmgrdn@amazon.com>
2022-03-21 23:49:17 +01:00
..
testdata Add '--weight' flag to 'promtool check metrics' command (#10045) 2022-01-07 16:58:28 -05:00
archive.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
backfill.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
backfill_test.go cmd: use t.TempDir instead of ioutil.TempDir on tests (#9852) 2021-11-23 20:09:28 -05:00
debug.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
main.go PromQL: Always enable negative offset and @ modifier 2022-01-11 17:08:55 +01:00
main_test.go Add '--weight' flag to 'promtool check metrics' command (#10045) 2022-01-07 16:58:28 -05:00
rules.go Run gofumpt on all files (#10392) 2022-03-03 17:21:05 +01:00
rules_test.go cmd: use t.TempDir instead of ioutil.TempDir on tests (#9852) 2021-11-23 20:09:28 -05:00
sd.go replace config exit code with failure exit code 2021-12-30 05:37:57 -08:00
sd_test.go Remove check against cfg so interval/ timeout are always set (#10023) 2021-12-16 13:28:46 +01:00
tsdb.go cmd: use os.MkdirTemp instead of ioutil.TempDir (#10320) 2022-03-08 14:08:53 +01:00
unittest.go Track and report Samples Queried per query 2022-03-21 23:49:17 +01:00
unittest_test.go Disable time based retention in tests (#8818) 2022-01-02 23:46:03 +01:00