I have a panel that shows average AWS ECS CPU usage, as per screenshot. I would like to be able to compare that data between 2 week sprints – have it show current data vs last 2 weeks for example, in the same panel, or first 2 weeks of August vs last 2 weeks of August. That’s the point. How would I do this? This is a cloudwatch plugin I’m using, running AWS managed Grafana, 10.4. Thanks.
I asked around and was told about offsets, but I couldn’t find that option. Then there was a CompareQuery plugin I was recommended, but its not in the plugin store for me.
Edit: I want 2 different time ranges but same time – now, 9am for example, vs 9am, 2 weeks ago.
In the Query Editor
, click on +
to add a second query.
- Duplicate the query in your panel.
- Apply a time shift to the second query using the
Time Shift
option
in the query editor.- For example, enter
2w
for a two-week shift.
- For example, enter
- This will allow you to display current data vs. data from two weeks
ago on the same graph.
If you don’t see a Time Shift
option, update your Grafana or check for any version limitations, as this feature is typically available.
1