Display average of traces in selected time interval

  • What Grafana version and what operating system are you using?
    Ubuntu 22.04
    Grafana 7.2.0

  • What are you trying to achieve?
    I would like to be able to manually select a time-slice of the displayed time-series and view statistics of the highlighted time slice, like the mean of the data. I would then like to select another time-slice and get more statistics.

  • How are you trying to achieve it?
    First I tried to just click-and-drag on the graph. This zoomed the graph to the region I highlighted. I then tried to Shift-Click-and-drag and Alt-Click-and-drag. All of these did the same thing. Finally, I tried Ctrl-Click-and-drag, and this allowed me to select a region and annotate it. The annotation allowed me to give the region a name, description, and tags, but I couldn’t see a way to use that to generate statistics.

Is there a way to do this? I can’t construct a query to do this for me because the data I want to use occurs randomly and I don’t have a programmatic way to pick out the regions of interest. I have to do it manually - for now.