I want to create a time-series chart in Dynatrace that shows the number of successful API hits for today and compares it to the same day last week (aligned by time of day).
I currently have a query that gives me the total count:
fetch user.events, scanLimitGBytes:-1
| filter app.bundle == "com.my.package"
| filter http.response.status == 200
| summarize count()
This works for totals, but I need:
- A graph showing progression throughout the day.
- Two series: Today (Sunday) and Last Sunday(or same weekday last week).
- Ideally aligned so 00:00 today compares to 00:00 last week.
What’s the correct DQL syntax or recommended approach to achieve this? Should I use makeTimeseries or bin()? And how do I shift last week’s timestamps forward for overlay?
A sample image is attached.
Any examples or best practices would be appreciated!
