Commit Graph

443 Commits (c7e525bc6ba0ea6ef032f84279f73fae86d4143f)

Author SHA1 Message Date
Julien Pivotto e079c9ed45 manager: add full stops on comments
5 years ago
alburthoffman 156dcb8cca avoid stopping rule groups if new rule groups are as same as old rule… (#6450)
5 years ago
Julien Pivotto 2d7c8069d0 Check that rules don't contain metrics with the same labelset (#6469)
5 years ago
Simon Pasquier 06066a3619
*: improve error messages when parsing bad rules (#5965)
5 years ago
Brian Brazil e62f30d497
Correctly handle empty labels from alert templates. (#5845)
5 years ago
Chris Marchbanks 0685eb5395
Refactor testutil.NewStorage into a new package
5 years ago
Brian Brazil 2184b79763
Mark deleted rule's series as stale on next evaluation. (#5759)
5 years ago
AllenZMC 5c2c9a03e9 fix word 'consequentally' to 'consequently' (#5827)
5 years ago
beorn7 dd81912554 Add objectives to Summaries
6 years ago
pbhudiaBAE 43953b105b Sorting alerts by group name in /alerts (#5448)
6 years ago
Yao Zengzeng 5544cb252a fix some mistakes in comments (#5533)
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Bjoern Rabenstein 76102d570c Add test for external labels in label template
6 years ago
Bjoern Rabenstein 38d518c0fe Rework #5009 after comments
6 years ago
Sylvain Rabot 335a34486e Add external labels to template expansion
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
James Ravn e15d8c5802 reload: copy state on both name and labels (#5368)
6 years ago
David Symonds 46361a7c85 rules: Fix sorting of result from (*Manager).RuleGroups (#5260)
6 years ago
beorn7 2db1eeb4ec Fix prometheus_rule_group_last_evaluation_timestamp_seconds
6 years ago
Ganesh Vernekar 787eb1e904 Set rule_group_last_duration_seconds to seconds (#5153)
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Vishnunarayan K I fd3ef6ba34 Add metric rule_group_rules_loaded to get the number of rules loaded (#5090)
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Tom Wilkie 121603c417
Expose rules.NewGroupMetrics and rules.Metrics. (#5059)
6 years ago
Tom Wilkie 6e08029b56
Move err to be the last return value from storage.Select. (#5054)
6 years ago
Bartek Płotka de213d4a5e rule manager: Moved metric registration to custom registerer which is already available. (#4961)
6 years ago
AixesHunter fb8479a677 Variable 'labels' collides with imported package name (#5012)
6 years ago
mknapphrt f0e9196dca Return warnings on a remote read fail (#4832)
6 years ago
Krasi Georgiev 0754e5334b
querier for RestoreForState not closed. (#4922)
6 years ago
Ben Kochie c6399296dc
Fix spelling/typos (#4921)
6 years ago
Wei Guo e329cbf673 Add metric prometheus_rule_group_last_evaluation for recording and alerting (#4852)
6 years ago
Will Hegedus 193ebe7e34 Updates to /targets and /rules (scrape duration, last evaluation time) (#4722)
6 years ago
Callum Styan 9bca041285 WIP: keep track of samples per query, set a max # of samples (#4513)
6 years ago
Ganesh Vernekar 5790d23fd8 Unit testing for rules (#4350)
6 years ago
Ganesh Vernekar 05726c5ea2 Test template expansion while loading groups (#4537)
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
Goutham Veeramachaneni f3b7c22827 rules: add comment about lock taking (#4525)
6 years ago
Ganesh Vernekar c663477688 Fixed TestUpdate in rules/manager_test.go (#4516)
6 years ago
Julius Volz 8fbe1b5133
Handle a bunch of unchecked errors (#4461)
6 years ago
Ganesh Vernekar a0a9e7df91 Fix TestForStateRestore (#4476) (#4512)
6 years ago
Julien Pivotto 0b4d22b245 rules/manager: remove a no-longer-relevant comment (#4503)
6 years ago
Chris Marchbanks 11155c7028 Existing alert labels will update based on templates (#4500)
6 years ago
Fabian Reinartz b7e2f407de rules: Fix double-locking of mutex
6 years ago
Benji Visser 8bb6e0dd6e Show rule evaluation errors on rules page (#4457)
6 years ago
Julius Volz 2b8fc062a8
rules: HTML-escape rule YAML marshal errors (#4464)
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
Max Leonard Inden 71fafad099
api/v1: Coninue work exposing rules and alerts
6 years ago
mg03 31f8ca0dfb
api v1 alerts/rules json endpoint
6 years ago
Bryan Boreham afdb66dfac Expose Group.CopyState() (#4304)
6 years ago
Julius Volz 9e3171f6e3 rules: Minor naming/comment cleanups (#4328)
6 years ago
Bryan Boreham 2bd510a63e Make TestUpdate() do some work (#4306)
7 years ago
Alin Sinpalean 9dc763cc03 Run rule evaluation with timestamps precisely evaluation_interval apart (#4201)
7 years ago
Mario Trangoni 464e747f1e fix some comments typos (#4059)
7 years ago
Bryan Boreham 93494d8b7e Add an OpenTracing span for each rule (#4027)
7 years ago
ferhat elmas ec8e4d8a7c all: remove unnecessary type conversions (#3992)
7 years ago
Warren Fernandes 58e2a31db8 Cleans up test by removing unused function (#3969)
7 years ago
ferhat elmas ffa673f7d8 General simplifications (#3887)
7 years ago
Fabian Reinartz 7ccd4b39b8 *: implement query params
7 years ago
Simon Pasquier 81c0ab69e0 Don't reset FiredAt for inactive alerts
7 years ago
Brian Brazil 30b4439bbd Remove rule_type label from rule metrics.
7 years ago
Brian Brazil b97f4cf48c Add metrics for rule group interval and last duration.
7 years ago
Brian Brazil 0a42a9fc8f Copy over rule group duration on reload.
7 years ago
Brian Brazil aa370fa568 Clarify metric names around rule groups.
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
Fabian Reinartz 2ec5965b75
Merge pull request #3508 from prometheus/uptsdb
7 years ago
Fabian Reinartz 83cd270ea4 *: adapt to storage interface changes
7 years ago
Goutham Veeramachaneni a880c86375
Fix unexported method on exported interface.
7 years ago
conorbroderick 55aaece116 Add rule evaluation time
7 years ago
Goutham Veeramachaneni e1117715fe
rules: remove skipped iterations cuz no throttling
7 years ago
Jorge Hernández 6cd0f63eb1 Use testutil in rules subpackage (#3278)
7 years ago
Krasi Georgiev e86d82ad2d Fix regression of alert rules state loss on config reload. (#3382)
7 years ago
Julius Volz 099df0c5f0 Migrate "golang.org/x/net/context" -> "context" (#3333)
7 years ago
Brian Brazil cc5499fcad Only close after checking for err.
7 years ago
Brian Brazil ee88f0d222 Ensure all values are used or _
7 years ago
Fabian Reinartz 2d0b8e8b94 Merge branch 'master' into dev-2.0
7 years ago
Julius Volz f7e8348a88 Re-add contexts to storage.Storage.Querier() (#3230)
7 years ago
beorn7 c2e9a151ab Make all rule links link to the "Console" tab rather than "Graph"
7 years ago
Fabian Reinartz d21f149745 *: migrate to go-kit/log
7 years ago
Goutham Veeramachaneni e1fc9dc78d Move /rules to new format (#2901)
7 years ago
Goutham Veeramachaneni 37e7b69f56
Merge remote-tracking branch 'upstream/dev-2.0' into rulegroups
8 years ago
Goutham Veeramachaneni c472316fb3
Check done before every rule evaluation.
8 years ago
Goutham Veeramachaneni 6b70a4d850
Incorporate PR feedback
8 years ago
Goutham Veeramachaneni 507790a357
Rework logging to use explicitly passed logger
8 years ago
Goutham Veeramachaneni dc69645e92
Move back to go-yaml
8 years ago
Goutham Veeramachaneni 5ff283a7b7
Reflect the grouping in the UI
8 years ago
Goutham Veeramachaneni 8cca666cf2
Add file name to group.
8 years ago
Goutham Veeramachaneni e893c89333
Validate labels and annotations
8 years ago
Goutham Veeramachaneni a48a018368
Make sure groups are unique in a single file
8 years ago
Goutham Veeramachaneni cea1e99f78
Add update-rules command to promtool
8 years ago
Goutham Veeramachaneni e8f55669ea Move rules to new format
8 years ago
Brian Brazil dcea3e4773 Don't append a 0 when alert is no longer pending/firing
8 years ago
Brian Brazil cc867dae60 Copy previous series and alert state more intelligently.
8 years ago
Brian Brazil 9bc68db7e6 Track staleness per rule rather than per group.
8 years ago
Brian Brazil 0451d6d31b Add unittest for rule staleness, and rules generally.
8 years ago
Brian Brazil 0400f3cfd2 Very basic staleness handling for rules.
8 years ago