Skip to content

Commit

Permalink
[alert_generator] Add test case covering ordered rules and producing …
Browse files Browse the repository at this point in the history
…more alerts after a delay. (prometheus#66)

* Rule that produces new alerts that go from pending->firing->inactive
  while already having active alerts.
* A rule group having rules which are dependent on the ALERTS series from
  the rules above it in the same group.
* Expansion of template in annotations only use the labels from the query
  result as source data even if those labels get overridden by the rules.
  They do not use the rules' additional labels.

Signed-off-by: Ganesh Vernekar <[email protected]>
  • Loading branch information
codesome authored Jan 25, 2022
1 parent 3a19336 commit 3723f95
Show file tree
Hide file tree
Showing 5 changed files with 650 additions and 5 deletions.
1 change: 1 addition & 0 deletions alert_generator/testsuite/cases/all_cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ var AllCases = []TestCase{
PendingAndFiringAndResolved(),
PendingAndResolved_AlwaysInactive(),
ZeroFor_SmallFor(),
NewAlerts_OrderCheck(),
}
Loading

0 comments on commit 3723f95

Please sign in to comment.