Commit Graph

337 Commits (c2005dbf63cfc7afa8cb6a6c1c59b3c665b376f0)

Author SHA1 Message Date
jessicagreben 61c9a89120 use milliseconds for blocksize
4 years ago
jessicagreben 6980bcf671 unexport backfiller
4 years ago
jessicagreben 3ed6457dd4 use blockwriter, rm multiwriter code
4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122)
4 years ago
Bartlomiej Plotka 3d8826a3d4
MultiError: Refactored MultiError for more concise and safe usage. (#8066)
4 years ago
David Leadbeater e7e60623ff
promtool: Calculate mint and maxt per test (#8096)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
jessicagreben 36ac0b68f1 merge master, fix conflicts
4 years ago
Arthur Silva Sens 4f45e201cc
Promtool tsdb list now prints block sizes (#7993)
4 years ago
David Leadbeater 5393ec22cb promtool: Don't end alert tests early, in some failure situations
4 years ago
David Leadbeater 77c784ac93
Ensure alert rules are marked as restored in unit tests (#7661)
4 years ago
jessicagreben 2e526cf2a7 add output dir parameter
4 years ago
jessicagreben dfa510086b add alignment, mv rule importer to promtool dir, add queryRange
4 years ago
Julien Pivotto 442b3364d7
Promtool: add evaluation time to instant query (#7829)
4 years ago
Andy Bursavich 4e6a94a27d
Invert service discovery dependencies (#7701)
4 years ago
Harold Dost 21a753c4e2
Make file permissions set to allow for wider umask options. (#7782)
4 years ago
Annanay 9bba8a6eae Merge branch 'master' into appender-context
4 years ago
jessicagreben 7504b5ce7c add rule importer with tsdb block writer
4 years ago
Annanay 7f98a744e5 Add context to Appender interface
4 years ago
chinhnc e05c19da5d
Display block duration in promtool list blocks command (#7653)
4 years ago
Ben Ye 50c261502e
add tsdb cmds into promtool (#6088)
4 years ago
Ben Ye e6ea798c32
promtool range query should exit when fail to parse time (#7505)
4 years ago
yeya24 797e48c1a3 support time range in promtool query labels
4 years ago
Jordan Neufeld 268b4c29e1
Support extended durations in promtool unit tests (Fixes #6285) (#6297)
5 years ago
Hongcai Ren c7e82274c6
replace github.com/prometheus/prometheus/testutil/promlint by github.com/prometheus/client_golang/prometheus/testutil/promlint from our codebase (#7209)
5 years ago
Brian Brazil 7646cbca32
Use .UTC everywhere we use time.Unix (#7066)
5 years ago
Tobias Guggenmos 454ba12676 Fix build errors in promtool
5 years ago
Harkishen Singh 84e6459c4d Adds support for line-column numbers for invalid rules, promtool (#6533)
5 years ago
akerele abraham 9d39fdad0c unittest: check for rule files existence (#6075)
5 years ago
Chris Marchbanks 1d1f64b4bc
Fix Promtool showing false duplicate rule warnings (#6270)
5 years ago
Simon Pasquier ddff1480a7
cmd/promtool: improve output for PromQL tests (#6052)
5 years ago
Harkishen Singh e097c70e6d add checks for metrics and display duplicate fields (#6026)
5 years ago
Simon Pasquier 06066a3619
*: improve error messages when parsing bad rules (#5965)
5 years ago
Sayan Chowdhury cb66e325d8 Show the warnings during label query (#5924)
5 years ago
Julius Volz b5c833ca21
Update go.mod dependencies before release (#5883)
5 years ago
Simon Pasquier 75886e0464 cmd/promtool: fix panic with empty exp_labels
5 years ago
Tom Wilkie 851131b074
Allow injection of arbitrary headers in promtool, for auth etc. (#4389)
5 years ago
Björn Rabenstein dc22f74153
Merge pull request #5608 from simonpasquier/external-labels-for-alert-tests
6 years ago
Björn Rabenstein 372b3438e5 Update prometheus/client_golang to v1.0.0 (#5682)
6 years ago
Keenan Romain 55f3a9fe4a Allows globs for rules when unit testing (#5595)
6 years ago
Simon Pasquier 74ff35ccdd cmd/promtool: add $externalLabels for alert unit tests
6 years ago
beorn7 aff4738f33 Adjust TestQueryRange to new Prometheus API client
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Simon Pasquier 9c69eec82a cmd/promtool: use log.NewNopLogger() (#5531)
6 years ago
Björn Rabenstein 0be9388f8d
Merge pull request #5463 from prometheus/beorn7/templating
6 years ago
Simon Pasquier abc1994bec
cmd/promtool: return errors from rule evaluations (#5483)
6 years ago
Bjoern Rabenstein 38d518c0fe Rework #5009 after comments
6 years ago
Bjoern Rabenstein a92ef68dd8 Fix staticcheck errors
6 years ago
David Symonds 7a60e22c2d cmd/promtool: resolve relative paths in alert test files (#5336)
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
Simon Pasquier c8a1a5a93c
discovery/kubernetes: fix support for password_file and bearer_token_file (#5211)
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Ganesh Vernekar 7d30ccd0eb Sort samples before comparing - PromQL unit test (#5052)
6 years ago
Ganesh Vernekar fbadd88ba5 Get unique eval times for alert unit tests (#4964)
6 years ago
Krasi Georgiev 080e6ed31a
collect cpu and trace profiles with the promtool debug command (#4897)
6 years ago
Ganesh Vernekar cfb3769274 Lazily load samples for unit testing (#4851)
6 years ago
stuart nelson 6a69471bc2
[promtool] Support writing output as json (#4848)
6 years ago
Frederic Branczyk bda9781ccd
Merge pull request #3839 from brancz/remove-old-alert-record
6 years ago
Ganesh Vernekar 5790d23fd8 Unit testing for rules (#4350)
6 years ago
Frederic Branczyk b0b3e3dd74
promql: Remove old and unused alerting/reconding syntax
6 years ago
Dave Henderson 73a08f0045 promtool - Adding --step flag to 'query range' subcommand (#4454)
6 years ago
Daisy T a3376e8f36 add query labels command to promtool (#4346)
6 years ago
Julius Volz 95dfb1b1dd
Add missing import to promtool, fix build (#4395)
6 years ago
Shubheksha 125da3b812 promtool: add command for querying series (#4308)
6 years ago
Chih-Hung Yeh 912d19fb85 Add 3 commands in `promtool` for getting debug information from prometheus server (#4247)
6 years ago
Sneha Inguva c1a851074b promtool: add query instant and query range commands (#4085)
7 years ago
Shubheksha Jalan 0471e64ad1 Use shared types from the `common` repo (#3674)
7 years ago
Shubheksha Jalan ec94df49d4 Refactor SD configuration to remove `config` dependency (#3629)
7 years ago
Callum Styan 8912f81ffe check if file_sd files exist in checkConfig
7 years ago
Goutham Veeramachaneni f9202c6511
Move from .yaml to .yml in update rules
8 years ago
Goutham Veeramachaneni e3701077c3
Move promtool to kingpin
8 years ago
Goutham Veeramachaneni 592cb00c2f
Remove version from RuleGroups
8 years ago
Goutham Veeramachaneni 6b70a4d850
Incorporate PR feedback
8 years ago
Goutham Veeramachaneni dc69645e92
Move back to go-yaml
8 years ago
Goutham Veeramachaneni 1c08743721
Update check-rules to new format.
8 years ago
Goutham Veeramachaneni cea1e99f78
Add update-rules command to promtool
8 years ago
Matt Layher 283756c503 Initial commit of 'promtool check-metrics', promlint package (#2605)
8 years ago
Fabian Reinartz 200bbe1bad config: extract SD and HTTPClient configurations
8 years ago
Steve Durrheimer 399d5c6375
Make version informations consistent between prometheus components
9 years ago
beorn7 b6fdb355d7 Move dump-heads into its own tool
9 years ago
beorn7 f193f2b8ef Add a command to promtool that dumps metadata of heads.db
9 years ago
Jimmi Dyson ec04ba38a2 Kubernetes SD config check
9 years ago
Jimmi Dyson a1574aa2b3 Move TLS options to scrape config
9 years ago
Fabian Reinartz 73f1cc807d Check token and cert file existence in promtool
9 years ago
Fabian Reinartz 7e615dcdf0 cmd/promtool: resolve rule files relative to config file
10 years ago
Fabian Reinartz bcc8101d9e cmd/promtool: fix missing builddate in version info
10 years ago
Fabian Reinartz 890c1a7e74 cmd/promtool: add promtool command.
10 years ago