We’ve been exploring Dynatrace’s dashboarding for the last couple of months and I continue to run into the same problem over and over and over again.
In Grafana we are able to put in a metric, `x_timestamps` or `x_status_codes`, and it displays that metric unaltered in a way we can then process them as needed. Timestamps we can be translated from epoch, status codes can be mapped to strings on our graphs for quick glances / easy alert setup. For example, when an alert goes off we link to a dashboard that shows the current running process count and the latest status code of all running processes in one location.
I have been unable to figure out how to show this raw data in any form in Dynatrace. We don’t want to aggregate timestamps. We don’t want the max status code. We want the last reported raw metric data, we want to display unaltered timeseries data to confirm all processes are running when they should, and ending when they should. We need raw timeseries data to show the timeline of given status codes, to report the actual number of successful jobs, to report an accurate number of currently connected hosts, not the average, or the max, or the min. Is this not possible within DQL?
We have a custom prometheus exporter running logic against our services and spitting out these custom metrics, as this is the only way we are able to get this data.
For example, this query functions but jumbles our dates (avg/max/min/count/sum):
timeseries last_run_date_gauge = max(last_run_date_gauge ), by: { tenant }
| fieldsAdd arr = `last_run_date_gauge`
| fieldsAdd val = timestampFromUnixMillis(arrayLast(arr))
but this query doesn’t work at all, as an aggregation is required:
timeseries last_run_date_gauge = last_run_date_gauge , by: { tenant }
| fieldsAdd arr = `last_run_date_gauge`
| fieldsAdd val = timestampFromUnixMillis(arrayLast(arr))
Ideally it would be as simple as `timestampFromUnixMillis(Last(last_run_date_gauge)), by: { tenant }` ?
Am I missing something simple where we can display this data in a way that it doesn’t lose it’s meaning?

