Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request: Add UI for testing full alerting expressions over time #1154
Comments
This comment has been minimized.
This comment has been minimized.
|
@qed- For my better understanding, how would this behave differently from just evaluating the alert expression as a graph to see at which historical points it generates output time series? That's how I currently test alert expressions over history. For better alert testing usability, I'd like us to add a UI input field though that allows you to test an entire alerting rule ( |
This comment has been minimized.
This comment has been minimized.
|
If I understand right it's possible to graph the alert expression but not any FOR and WITH clauses. Ideally you could click on an alert and see exactly how it would have been evaluated in the past, complete with labels. |
This comment has been minimized.
This comment has been minimized.
|
Labels are currently static, so |
This comment has been minimized.
This comment has been minimized.
|
Yes, the thing about |
This comment has been minimized.
This comment has been minimized.
|
Yes, I mentioned labels as being the way to tell if the alert is firing or pending. |
This comment has been minimized.
This comment has been minimized.
|
So in my suggestion, the following would happen: There's a UI textarea that lets you paste in an entire alerting expression. Alternatively, you can click on an already configured alerting rule to take you to the pre-filled-in version of that. When pressing a button, you get a graph over time where you basically see labeled time series for any firing alert vector elements at the times when they are firing. If nothing is firing over the entire history, you would just get an empty graph. This is where Prometheus's alerting model differes fundamentally from one like Bosun's, where an alerting rule always has a single scalar output value vs. a whole vector of possible values (or none). As an additional bonus, one could display a graph of just the count of firing alert elements over time or something like that. Would that address your feature request? |
This comment has been minimized.
This comment has been minimized.
|
(and that would take into account the |
This comment has been minimized.
This comment has been minimized.
|
That would be perfect. |
juliusv
changed the title
Feature request: generate timeseries over historical data
Feature request: Add UI for testing full alerting expressions over time
Oct 9, 2015
This comment has been minimized.
This comment has been minimized.
|
@qed- Great, I've adjusted the title of this issue to reflect this more clearly. I can't say yet when this is going to happen, but I think it would be a great thing to have in general. |
This comment has been minimized.
This comment has been minimized.
|
I think in addition we need something to handle the |
brian-brazil
added
the
feature-request
label
Dec 16, 2015
fabxc
added
kind/enhancement
and removed
feature request
labels
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
|
Related: #1369 |
qed- commentedOct 9, 2015
It would be great if there was a way to generate time series (from recording rules and synthetic alert timeseries).
This would effectively allow backtesting of alerts and recording rules over past data.