Commit Graph

499 Commits (7026e6b4e46a3eb3a152cec6a1d3f6637e5bb7f9)

Author SHA1 Message Date
Bartlomiej Plotka 48ead578a0 Moved tsdbconfig to main.
5 years ago
Bartlomiej Plotka a20bebf7eb Moved readyStorage to main.
5 years ago
Bartlomiej Plotka 8a775bc468 Moved unit agnostic options to separate pkg.
5 years ago
Bartlomiej Plotka 59c9d6ef45 Addressed Brian's comments, moved metrics to main.go
5 years ago
Bartlomiej Plotka cfba92a133 Addressed comments.
5 years ago
Bartlomiej Plotka 34426766d8 Unify Iterator interfaces. All point to storage now.
5 years ago
Tobias Guggenmos 454ba12676 Fix build errors in promtool
5 years ago
Björn Rabenstein af04cb22c8
Merge pull request #6821 from prometheus/release-2.16
5 years ago
Julien Pivotto ff0003e072
Make lookbackDelta a option of QueryEngine (#6746)
5 years ago
Julien Pivotto d799078c88 also test start and end
5 years ago
Julien Pivotto 881dde505a promql: fix promql query log step unit
5 years ago
Julien Pivotto 3c4c01eae2
Fix race in Query Log Test (#6727)
5 years ago
Julien Pivotto 9adad8ad30 Remove MaxConcurrent from the PromQL engine opts (#6712)
5 years ago
Julien Pivotto 5f27ac3583 Refactor query log fields (#6694)
5 years ago
Julien Pivotto 2b2eb79e8b Add windows tests for query logger (#6653)
5 years ago
Julien Pivotto 0eb34299da End-to-end Query Log test (#6600)
5 years ago
Julien Pivotto 1a58d2657d Removed compilation step inside main_test (#6658)
5 years ago
Harkishen Singh 84e6459c4d Adds support for line-column numbers for invalid rules, promtool (#6533)
5 years ago
Julien Pivotto 3885562587 Query Logging styling (#6594)
5 years ago
Julien Pivotto 9d9bc524e5 Add query log (#6520)
5 years ago
Simon Pasquier cccd542891
*: avoid missed Alertmanager targets (#6455)
5 years ago
Brooks Swinnerton 0ea3a2218d Add time units to storage.tsdb.retention.size flag (#6365)
5 years ago
johncming ad4bc5701e remove unwanted break (#6338)
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
Bartek Płotka 48b2c9c8ea
remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader (#5703)
5 years ago
Bartek Płotka 5cb32d67f9
Merge pull request #5893 from prometheus/unify-tsdbutil
5 years ago
Bartek Plotka f0863a604e Removed extra tsdb/testutil after merge.
5 years ago
Julius Volz b5c833ca21
Update go.mod dependencies before release (#5883)
5 years ago
Advait Bhatwadekar 5d401f1e1b Added query logging for prometheus. Issue #1315 (#5794)
5 years ago
Simon Pasquier 75886e0464 cmd/promtool: fix panic with empty exp_labels
5 years ago
Chris Marchbanks 06f1ba73eb
Provide flag to compress the tsdb WAL
5 years ago
Tom Wilkie 851131b074
Allow injection of arbitrary headers in promtool, for auth etc. (#4389)
5 years ago
Simon Pasquier be67b8d460
web: fix flaky TestHTTPMetrics() (#5695)
6 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
Lee Gaines f4486815c1 logs filesystem type on startup (#5558)
6 years ago
Björn Rabenstein 0a34399611 Fix minor punctuation and language issues in flag doc strings (#5568)
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
Frederic Branczyk c790d7658c
Merge pull request #5491 from metalmatze/rungroup
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
Matthias Loibl 388caa06ac
Use github.com/oklog/run not archived oklog/oklog
6 years ago
Bjoern Rabenstein 38d518c0fe Rework #5009 after comments
6 years ago
Bjoern Rabenstein a92ef68dd8 Fix staticcheck errors
6 years ago
Sylvain Rabot 335a34486e Add external labels to template expansion
6 years ago
Simon Pasquier e5dbac7972 cmd/prometheus: group flags properly (#5419)
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
Brian Brazil 0a87dcd416
cmd: Warn rather than Info when retention time wraps (#5403)
6 years ago
Krasi Georgiev 9d96ada510 Display correct values for the retention in the flags web gui. (#5322)
6 years ago
Krasi Georgiev 1684dc750a
updated tsdb to 0.6.0 (#5292)
6 years ago
Simon Pasquier c8a1a5a93c
discovery/kubernetes: fix support for password_file and bearer_token_file (#5211)
6 years ago
Krasi Georgiev a3c41f4256
use the default time retention value only when no size retention is set (#5216)
6 years ago
Callum Styan 6f69e31398 Tail the TSDB WAL for remote_write
6 years ago
Brian Brazil 1dd57765b4
Reduce time that alertmanagers are in flux when reloaded. (#5126)
6 years ago
Goutham Veeramachaneni 4068968e12
Protect retention from overflowing (#5112)
6 years ago
Goutham Veeramachaneni 384cba1211
Add flag for size based retention (#5109)
6 years ago
Hrishikesh Barman a1f34bec2e Added CORS Origin flag (#5011)
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Ryan Leung 45c8b084c6 fix TestFailedStartupExitCode (#5076)
6 years ago
Lv Jiawei b8ede99767 Fix comment typo (#5087)
6 years ago
Frederic Branczyk e9ae0b5a1b
Merge pull request #4927 from tariq1890/update_k8s
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
tariqibrahim 9b4a25e7b0 use klog dependency
6 years ago
glutamatt 5ddde1965b tune the "Wal segment size" with a flag (#5029)
6 years ago
Ganesh Vernekar 7d30ccd0eb Sort samples before comparing - PromQL unit test (#5052)
6 years ago
Ganesh Vernekar dbe55c1352 Subquery (#4831)
6 years ago
Simon Pasquier a2766a94a3 cmd/prometheus: add tests for sendAlerts() (#4910)
6 years ago
AixesHunter 1b166d7174 Fix variable 'notifier' collides with imported package name 'github.com/prometheus/prometheus/notifier', changed to 'notifierManager'. (#4947)
6 years ago
Ganesh Vernekar fbadd88ba5 Get unique eval times for alert unit tests (#4964)
6 years ago
Simon Pasquier ac9d5f3d53
cmd/prometheus: replace glog by glog-gokit (#4931)
6 years ago
Krasi Georgiev 080e6ed31a
collect cpu and trace profiles with the promtool debug command (#4897)
6 years ago
Alex Yu 5dcce32ef8 update promlog to latest version (#4876)
6 years ago
Ganesh Vernekar cfb3769274 Lazily load samples for unit testing (#4851)
6 years ago
achiuBAE a9050c45f6 Allow setting the Prometheus instance document title through a flag. (#4841)
6 years ago
stuart nelson 6a69471bc2
[promtool] Support writing output as json (#4848)
6 years ago
Lucas Serven 70c8b2c63c
cmd/prometheus: buffer signal chans
6 years ago
Frederic Branczyk bda9781ccd
Merge pull request #3839 from brancz/remove-old-alert-record
6 years ago
Simon Pasquier a30348f1a4 discovery: add config label to discovered targets metric (#4753)
6 years ago
Callum Styan 9bca041285 WIP: keep track of samples per query, set a max # of samples (#4513)
6 years ago
Tom Wilkie 4c52400708
Limit concurrent remote reads. (#4656)
6 years ago
Ganesh Vernekar 5790d23fd8 Unit testing for rules (#4350)
6 years ago
Tom Wilkie 457e4bb58e
Limit the number of samples remote read can return. (#4532)
6 years ago
Chris Marchbanks 63ed9d1b70 Send EndsAt along with alerts (#4550)
6 years ago
Chris Marchbanks 87f1dad16d throttle resends of alerts to 1 minute by default (#4538)
6 years ago
Krasi Georgiev 12fe204ea6
move runtime debug funcs in own package (#4494)
6 years ago
Simon Pasquier 08c2f50382
Merge pull request #4418 from simonpasquier/log-vm-limits
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
Julius Volz 90521a65f8
Remove error return value from NotifyFunc() (#4459)
6 years ago
Ganesh Vernekar f1db699dff Persist alert 'for' state across restarts (#4061)
6 years ago
Simon Pasquier a94450c288 Fix build for openbsd
6 years ago
Simon Pasquier 141c188ae6 Enforce conversion for freebsd
6 years ago
Simon Pasquier 208d21a393 Add comment and print units
6 years ago
Simon Pasquier ba22b10113 prometheus: log virtual memory limits
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
Julius Volz 03aa3a3de8
main: Improve / clean up error messages (#4286)
6 years ago
Chih-Hung Yeh 912d19fb85 Add 3 commands in `promtool` for getting debug information from prometheus server (#4247)
6 years ago
Brian Brazil 68e8b80ffe
Reorder startup and shutdown to prevent panics. (#4321)
6 years ago
Michael Khalil 78e0784d04 return error exit status in prometheus cli (#4296)
7 years ago
Tom Wilkie 8acad5f3cd make it compile
7 years ago
Tom Wilkie e51d6c4b6c Make remote flush deadline a command line param.
7 years ago
Sneha Inguva c1a851074b promtool: add query instant and query range commands (#4085)
7 years ago
Mario Trangoni 464e747f1e fix some comments typos (#4059)
7 years ago
Sneha Inguva 7be846754a main: actor functionality comments
7 years ago
Marek Siarkowicz bb86c3f62b Report internal runtime information on status page (#3921)
7 years ago
James Turnbull ba5273a0ab Minor edits to help text (#3990)
7 years ago
Simon Pasquier e1fd96db25 cmd: fix help text (#3989)
7 years ago
ferhat elmas ffa673f7d8 General simplifications (#3887)
7 years ago
Bartek Plotka 93a63ac5fd api: Added v1/status/flags endpoint. (#3864)
7 years ago
Fabian Reinartz 7ccd4b39b8 *: implement query params
7 years ago
Conor Broderick 5169ccf258
Merge pull request #3724 from simonpasquier/fix-bad-data-error
7 years ago
Krasi Georgiev b75428ec19 rename package retrieve to scrape
7 years ago
Krasi Georgiev 7858745c04 rename structs for consistency
7 years ago
Krasi Georgiev acc4197098 remove dicovery race for the context field
7 years ago
Julien Pivotto 8b20cb1e8d last config success time gauge: use SetToCurrentTime() (#3750)
7 years ago
Simon Pasquier 81c0ab69e0 Don't reset FiredAt for inactive alerts
7 years ago
Krasi Georgiev 719c579f7b refactor main execution reloadReady handling, update some comments
7 years ago
Krasi Georgiev 0eafaf32d3 set the correct config reloading execution for scraper and notifier
7 years ago
Krasi Georgiev 97f0461e29 refactor the config reloading execution
7 years ago
Krasi Georgiev 5260c650ec use the config hash for the map lookup
7 years ago
Krasi Georgiev 8369826808 comment to rethink the map reference for the notifier discovery
7 years ago
Krasi Georgiev d12e6f29fc discovery manager ApplyConfig now takes a direct ServiceDiscoveryConfig so that it can be used for the notify manager
7 years ago
Shubheksha Jalan 0471e64ad1 Use shared types from the `common` repo (#3674)
7 years ago
Goutham Veeramachaneni 35a6ffbaf3
Merge pull request #3587 from krasi-georgiev/web-test-error-check
7 years ago
Shubheksha Jalan ec94df49d4 Refactor SD configuration to remove `config` dependency (#3629)
7 years ago
Brian Brazil ecc24b554d
Hide block duration flags. (#3618)
7 years ago
Krasi Georgiev c94fa731aa bypass the proxy for the tests
7 years ago
Krasi Georgiev ad66476c4f fix flaky main.go test and simplify a bit
7 years ago
Fabian Reinartz 2881d73ed8
Merge pull request #3362 from krasi-georgiev/discovery-refactoring
7 years ago
Goutham Veeramachaneni 9c9f96b2c0
Merge pull request #3529 from krasi-georgiev/main-integration-test
7 years ago
Krasi Georgiev 587dec9eb9 rebased and resolved conflicts with the new Discovery GUI page
7 years ago
Krasi Georgiev 1ec76d1950 rearange the contexts variables and logic
7 years ago
Krasi Georgiev 6ff1d5c51e add the scrape manager config reloader
7 years ago
Krasi Georgiev b0d4f6ee08 resolved merge confilc in main.go
7 years ago
Krasi Georgiev c5cb0d2910 simplify naming and API.
7 years ago
Krasi Georgiev 9c61f0e8a0 scrape pool doesn't rely on context as Stop() needs to be blocking to prevent Scrape loops trying to write to a closed TSDB storage.
7 years ago
Krasi Georgiev e405e2f1ea refactored discovery
7 years ago
pasquier-s 2440696961 Log file descriptor limits at startup (#3567)
7 years ago
Alberto Cortés 29da2fb9cd testutil: update to go1.9 testing.Helper
7 years ago
Alberto Cortés 8f6a9f7833 config: simplify tests by using testutil.NotOk (#3289)
7 years ago
Krasi Georgiev 740662644e write to temp dir and remove it at the end.
7 years ago
Brian Brazil b97f4cf48c Add metrics for rule group interval and last duration.
7 years ago
Krasi Georgiev 2c2a962da3 main.go integration test for Startup interrupting.
7 years ago
Goutham Veeramachaneni 823b7f90b3
Use the files globbed files and not the files in cfg
7 years ago
Fabian Reinartz 62461379b7 rules: decouple notifier packages
7 years ago
Fabian Reinartz 4d964a0a0d rules: make glob expansion a concern of main
7 years ago
Fabian Reinartz bd9f7460eb rules: remove config package dependency
7 years ago
Fabian Reinartz 2d0e3746ac rules: remove dependency on promql.Engine
7 years ago
Krasi Georgiev e2f4850fea Refactor main.go with oklog/pkg/group actors pattern
7 years ago
Thibault Chataigner fc4406201e Tsdb StartTime : Use a simplier way to compute StartTime
7 years ago
Julius Volz 099df0c5f0 Migrate "golang.org/x/net/context" -> "context" (#3333)
7 years ago
Julius Volz 9d43176ab3 Remove unused printVersion variable (#3335)
7 years ago
Julius Volz 82c5b98496 Capitalize Prometheus in startup message (#3332)
7 years ago
Thibault Chataigner bf4a279a91 Remote storage reads based on oldest timestamp in primary storage (#3129)
7 years ago
Julius Volz 5f715f5733 Fix typo in flag description (#3302)
7 years ago
Tobias Schmidt 3589f2f1d4 Merge pull request #3285 from jlevesy/use-testutils-in-cmd-subpackage
7 years ago
Julien Levesy d7b4fa8d78 use testutil assertions in the cmd/prometheus package
7 years ago
Mathieu Pasquet 38afa507bb Provide better errors messages in commandline
7 years ago
Marc Sluiter 6a633eece1 Added go-conntrack for monitoring http connections (#3241)
7 years ago
Fabian Reinartz 2d0b8e8b94 Merge branch 'master' into dev-2.0
7 years ago
Paul Gier 08af129b4d cmd/prometheus: don't allow quotes at beginning or end of url
7 years ago
Paul Gier f79b55d057 cmd/prometheus: remove govalidator for url validation
7 years ago
Fabian Reinartz 7b02bfee0a web: start web handler while TSDB is starting up
7 years ago
Goutham Veeramachaneni f5aed810f9 logging: Port to common/promlog
7 years ago
Fabian Reinartz d21f149745 *: migrate to go-kit/log
7 years ago
Fabian Reinartz c70379e1c7 Merge branch 'dev-2.0' of github.com:prometheus/prometheus into dev-2.0
7 years ago
Fabian Reinartz fffe51fb03 Add mutex and block profiling via envvar
7 years ago
Ben Kochie 59aca4138b Fix staticcheck issues.
7 years ago
Matt Bostock 64973f5c65 cmd/prometheus: Fix capitalisation in log line (#3123)
7 years ago
Mark Adams 77c816b309 Fix pprof endpoints when -web.route-prefix or -web.external-url is used (#3054)
7 years ago
Callum Styan 8912f81ffe check if file_sd files exist in checkConfig
7 years ago
Fabian Reinartz 25f3e1c424 Merge branch 'master' into mergemaster
7 years ago
KalivarapuReshma 686050d816 Change -config.file to --config.file in Readme and error message
7 years ago
emluque ff54c5c11a 2831 Add Healthy and Ready endpoints
7 years ago
Fabian Reinartz 4d3d8ee229 Merge pull request #2850 from tomwilkie/dev-2.0-remote
7 years ago
Julius Volz cc50aa2c6b main: Consistently end flag descriptions with periods. (#2977)
7 years ago
Tom Wilkie 2dda5775e3 Initial port of remote storage to v2.
7 years ago
Fabian Reinartz 32226e30f5 Guard reload and quit endpoints by flag
7 years ago
Fabian Reinartz 45ac064669 web: disable Amin APIs by default
7 years ago
Fabian Reinartz ccf9e62972 *: add admin grpc API
7 years ago
Fabian Reinartz be32afd6df cmd/prometheus: add back tsdb.no-lockfile flag
8 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
Fabian Reinartz 867b8d108f cmd/prometheus: cleanup
8 years ago
Fabian Reinartz 34ab7a885a cmd/prometheus: switch to kingpin
8 years ago
Goutham Veeramachaneni 592cb00c2f
Remove version from RuleGroups
8 years ago
Goutham Veeramachaneni 37e7b69f56
Merge remote-tracking branch 'upstream/dev-2.0' into rulegroups
8 years ago
Goutham Veeramachaneni 67dc73fd59
Flag changes for 2.0
8 years ago