You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the data source returns time series outside of the specified window they are still used in the reduce function.
For example, on the screenshot, you can see that all data points in the last 5 minutes are 0 but reduced to max returns 1.
Currently, I have this issue with the forked sentry data source because Sentry ignores a specified time window but this could be with any other data source with a similar problem.
What did you expect to happen?
I expect Grafana to use only data points from the selected time window. This is especially confusing because when specifying an alert via provisioning relativeTimeRange is specified under in reduce query but it's completely ignored. E.g.
- refId: B
datasourceUid: "__expr__"
model:
refId: B
type: reduce
datasource:
uid: "-100"
type: __expr__
expression: A
reducer: max
relativeTimeRange: # doesn't matter, all range from A is using
from: 900
to: 0
Did this work before?
No idea, I noticed it only now
How do we reproduce it?
Use a data source that returns time series outside selected window
Use any min/max reduce function
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 10.1.2
Grafana platform?
Kubernetes
Datasource(s)?
No response
The text was updated successfully, but these errors were encountered:
bossinc
changed the title
Alerting: returned by a data source time series is not filtered by time window
Returned by a data source time series is not filtered by time window
Nov 14, 2023
What happened?
If the data source returns time series outside of the specified window they are still used in the reduce function.
For example, on the screenshot, you can see that all data points in the last 5 minutes are 0 but reduced to max returns 1.
Currently, I have this issue with the forked sentry data source because Sentry ignores a specified time window but this could be with any other data source with a similar problem.
What did you expect to happen?
I expect Grafana to use only data points from the selected time window. This is especially confusing because when specifying an alert via provisioning relativeTimeRange is specified under in reduce query but it's completely ignored. E.g.
Did this work before?
No idea, I noticed it only now
How do we reproduce it?
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
Grafana: 10.1.2
Grafana platform?
Kubernetes
Datasource(s)?
No response
The text was updated successfully, but these errors were encountered: