Open tonypowa opened 3 months ago
This issue is a test copy of an issue in another repo. Original issue: https://github.com/grafana/grafana/issues/#84733
Summary: The issue describes a problem where annotations that are not present in the initial timerange do not appear when the timerange is changed to include them. This behavior, which does not match user expectations or previous functionality, can be replicated using a timeseries panel in Grafana v11.0.0-pre.
Hi @tonypowa, thank you for reporting the issue with annotations not being displayed correctly after a timerange change. Considering that it involves the Timeseries panel, it's likely related to the Frontend Platform project. I would suggest tagging your issue with the area/frontend
label and mentioning it may need attention from the frontend platform team so they can take a closer look.
/label ~"area/frontend"
/cc @frontend-platform-team
Elaboration:
Hello @tonypowa, and thank you for taking the time to report this issue! Your detailed explanation and even providing a video link are really helpful. However, I have a couple of clarifying questions that will help us fully understand and troubleshoot the problem:
Any additional information regarding your environment or steps that might help us reproduce the issue would be greatly appreciated. Thank you!
What happened?
Annotations outside of initial timerange are not displayed on timerange change.
What did you expect to happen?
Display annotations outside of initial timerange when the range is changed and should include the annotation.
Did this work before?
Yes but not sure until when.
How do we reproduce it?
Initiate timeseries panel, let's have a range e.g. now-1d...now
Have an annotation query that returns some annotation in range now-2d...now-1d.
Therefore, annotation query returns empty result for initial timerange.
Change the range to now-2d...now, annotation query should return an annotation record
The annotation is not visible
https://github.com/grafana/grafana/assets/327717/62e163a9-aaad-4ec7-b559-2552f5f99458
in the video, there's initially last 4d range, you can see the annotation.
Then the panel is reloaded with initial last 2d range. The range is then changed to last 4d but the annotation is not visible.
Then again, the panel is reloaded with initial 4d range just to show the annotation is still there.
Is the bug inside a dashboard panel?
| Key | Value |
|--|--|
| Panel | timeseries @ Grafana v11.0.0-pre (6b5047fb1a) |
| Grafana | Grafana v11.0.0-pre (6b5047fb1a) // Open Source |
Panel debug snapshot dashboard
```json { "panels": [ { "datasource": { "type": "grafana", "uid": "grafana" }, "fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "lineInterpolation": null, "barAlignment": 0, "lineWidth": 1, "fillOpacity": 80, "gradientMode": "none", "spanNulls": false, "insertNulls": false, "showPoints": "never", "pointSize": 1, "stacking": { "mode": "normal", "group": "A" }, "axisPlacement": "auto", "axisLabel": "", "axisColorMode": "text", "axisBorderShow": false, "scaleDistribution": { "type": "linear" }, "axisCenteredZero": false, "hideFrom": { "tooltip": false, "viz": false, "legend": false }, "thresholdsStyle": { "mode": "line" }, "axisWidth": 90 }, "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "transparent", "value": null }, { "color": "#ffffff", "value": 0 } ] }, "decimals": 2 }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/ out$/" }, "properties": [ { "id": "custom.stacking", "value": { "group": "A", "mode": "normal" } } ] }, { "matcher": { "id": "byRegexp", "options": "/ in$/" }, "properties": [ { "id": "custom.stacking", "value": { "group": "B", "mode": "normal" } }, { "id": "custom.transform", "value": "negative-Y" } ] }, { "matcher": { "id": "byRegexp", "options": "/speed .+$/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#ef843c", "mode": "fixed" } }, { "id": "custom.fillOpacity", "value": 0 }, { "id": "custom.lineInterpolation", "value": "stepAfter" }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.stacking", "value": { "group": false, "mode": "none" } }, { "id": "unit", "value": "bps" } ] }, { "matcher": { "id": "byRegexp", "options": "/usage .+$/" }, "properties": [ { "id": "color", "value": { "fixedColor": "#cca300", "mode": "fixed" } }, { "id": "custom.fillOpacity", "value": 0 }, { "id": "custom.lineWidth", "value": 1 }, { "id": "custom.axisWidth", "value": 70 }, { "id": "custom.axisPlacement", "value": "right" }, { "id": "custom.stacking", "value": { "group": false, "mode": "none" } }, { "id": "unit", "value": "percentunit" } ] }, { "matcher": { "id": "byName", "options": "Force Y-axis" }, "properties": [ { "id": "color", "value": { "fixedColor": "transparent", "mode": "fixed" } }, { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": false } }, { "id": "custom.axisPlacement", "value": "right" }, { "id": "custom.thresholdsStyle", "value": { "mode": "off" } }, { "id": "custom.axisWidth", "value": 70 }, { "id": "unit", "value": "bool_hack_axis" } ] } ] }, "gridPos": { "h": 13, "w": 15, "x": 0, "y": 0 }, "id": 2, "minSpan": null, "options": { "tooltip": { "mode": "multi", "sort": "desc", "maxHeight": 600 }, "legend": { "showLegend": true, "displayMode": "table", "placement": "right", "calcs": [ "max", "last", "pctl95" ], "width": 420 } }, "repeat": null, "repeatDirection": null, "targets": [ { "refId": "A", "datasource": { "type": "grafana", "uid": "grafana" }, "queryType": "snapshot", "snapshot": [ { "schema": { "name": "bps in", "fields": [ { "name": "Time", "type": "time", "config": {} }, { "name": "Value", "type": "number", "config": {} } ] }, "data": { "values": [ [ 1710570240000, 1710570300000, 1710570360000, 1710570420000, 1710570480000, 1710570540000, 1710570600000, 1710570660000, 1710570720000, 1710570780000, 1710570840000, 1710570900000, 1710570960000, 1710571020000, 1710571080000, 1710571140000, 1710571200000, 1710571260000, 1710571320000, 1710571380000, 1710571440000, 1710571500000, 1710571560000, 1710571620000, 1710571680000, 1710571740000, 1710571800000, 1710571860000, 1710571920000, 1710571980000, 1710572040000, 1710572100000, 1710572160000, 1710572220000, 1710572280000, 1710572340000, 1710572400000, 1710572460000, 1710572520000, 1710572580000, 1710572640000, 1710572700000, 1710572760000, 1710572820000, 1710572880000 ], [ null, 12384621000, 12657638060, 12872629244, 12819723019, 12336178034, 12910159578, 13975437745, 13379396898, 13712824802, 13209149770, 13245684990, 13057720781, 13137844599, 13402182813, 13281213055, 13803247997, 13277081728, 12864931495, 13724415359, 13537409839, 13785756510, 13602340545, 13996299543, 13717398102, 13632899076, 13545784156, 14008554701, 14220573804, 14980229121, 14649959802, 14855479041, 14470721005, 14026096642, 14225385608, 15049379110, 14934245421, 15687843804, 15024645387, 14292782967, 14112092438, 14442386639, 13879515431, 14534062508, 14534062508 ] ] } }, { "schema": { "name": "bps out", "fields": [ { "name": "Time", "type": "time", "config": {} }, { "name": "Value", "type": "number", "config": {} } ] }, "data": { "values": [ [ 1710570240000, 1710570300000, 1710570360000, 1710570420000, 1710570480000, 1710570540000, 1710570600000, 1710570660000, 1710570720000, 1710570780000, 1710570840000, 1710570900000, 1710570960000, 1710571020000, 1710571080000, 1710571140000, 1710571200000, 1710571260000, 1710571320000, 1710571380000, 1710571440000, 1710571500000, 1710571560000, 1710571620000, 1710571680000, 1710571740000, 1710571800000, 1710571860000, 1710571920000, 1710571980000, 1710572040000, 1710572100000, 1710572160000, 1710572220000, 1710572280000, 1710572340000, 1710572400000, 1710572460000, 1710572520000, 1710572580000, 1710572640000, 1710572700000, 1710572760000, 1710572820000, 1710572880000 ], [ null, 2672165103, 2913842436, 2785374983, 3150798774, 3021137507, 2852829877, 2926877937, 2811329423, 3115885084, 3234363350, 2959631855, 3354606010, 5383859353, 3091951033, 4780216803, 4263754182, 3250258615, 3353449632, 3360452321, 3427781631, 3428344818, 6709440304, 3587377497, 3832570429, 3317330108, 3033903451, 3558923460, 3087791131, 3446059010, 3879286627, 4107813252, 3972585206, 3501793057, 3670068015, 4201256792, 4371374646, 4603923696, 3925582047, 3693706055, 3998737456, 3651795743, 3342252346, 3341791338, 3341791338 ] ] } }, { "schema": { "name": "Force Y-axis", "fields": [ { "name": "Time", "type": "time", "config": {} }, { "name": "Value", "type": "number", "config": {} } ] }, "data": { "values": [ [ 1710570240000, 1710570300000, 1710570360000, 1710570420000, 1710570480000, 1710570540000, 1710570600000, 1710570660000, 1710570720000, 1710570780000, 1710570840000, 1710570900000, 1710570960000, 1710571020000, 1710571080000, 1710571140000, 1710571200000, 1710571260000, 1710571320000, 1710571380000, 1710571440000, 1710571500000, 1710571560000, 1710571620000, 1710571680000, 1710571740000, 1710571800000, 1710571860000, 1710571920000, 1710571980000, 1710572040000, 1710572100000, 1710572160000, 1710572220000, 1710572280000, 1710572340000, 1710572400000, 1710572460000, 1710572520000, 1710572580000, 1710572640000, 1710572700000, 1710572760000, 1710572820000, 1710570285000, 1710572847000 ], [ null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, 0 ] ] } }, { "schema": { "meta": { "dataTopic": "annotations" }, "fields": [ { "name": "cofu", "config": {}, "type": "string" }, { "name": "eywff", "config": {}, "type": "string" }, { "name": "time", "config": {}, "type": "time" }, { "name": "nyrpEot", "config": {}, "type": "number" }, { "name": "zanp", "config": {}, "type": "string" }, { "name": "xmza", "config": {}, "type": "other" }, { "name": "tuwtjp", "config": {}, "type": "other" }, { "name": "chRzkria", "config": {}, "type": "boolean" } ] }, "data": { "values": [ [ "DDfS", "DDfS", "DDfS", "DDfS", "DDfS", "DDfS", "DDfS" ], [ "tliu(226, 77, 66, 0.2)", "tliu(226, 77, 66, 0.2)", "tliu(226, 77, 66, 0.2)", "tliu(226, 77, 66, 0.2)", "tliu(226, 77, 66, 0.2)", "tliu(226, 77, 66, 0.2)", "tliu(226, 77, 66, 0.2)" ], [ 1710571102000, 1710571514000, 1710570997000, 1710570996000, 1710570995000, 1710571514000, 1710571514000 ], [ 1710571156000, 1710571713000, 1710571295000, 1710571298000, 1710571298000, 1710571714000, 1710571712000 ], [ "DDfSEnvironment (with versions)?
Grafana: b38436eeb09bf92cb499ef3b1a31088816395a10
OS: macos
Browser: chrome
Grafana platform?
None
Datasource(s)?
No response