Skip to content

Remove datapoint sorting from area chart

What does this MR do?

Reduces complexity on the metrics dashboard. The PromQL Api allows ascending and descending sorting, but it reliably returns ordered time series information either way. We can eliminate an unneeded sort in favor of comparing the first and last data points in a query result instead.

Context

We are concerned with getting the earliest data point from all of the data series within chartData. The series data is an array of arrays where the innermost array is a timestamp:value pair. For example:

Screen_Shot_2019-05-21_at_4.08.36_PM

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports