I have a summary metric in the following format:
- total_process1_duration_sum: 10s
- total_process1_duration_sum: 20s
- total_process1_duration_sum: 30s
- total_process2_duration_sum: 45s
- total_process2_duration_sum: 90s
I am trying to make a graph, where x-axis would be a timeline, and y-axis would be last metric minus previous metric. So for example, for total_process1_duration_sum metric the graph would show 10, and for total_process2_duration_sum the graph would show 45. The value of 10 and 45 should be shown on the graph for 10 and 45 seconds respectively.
Context: I am running DAGs on Airflow, and Airflow returns DAG duration as a summary metric. It is either a sum of all DAGruns, or a percentile (0.5, 0.9, 0.99). I want to visualise when each DAGrun started and how long did it last.