Hello there,
I have a panel configured as a Time Series that queries Prometheus, returning values in milliseconds, sampled every 5 minutes. However, I can’t find a way to connect the data points with lines, as you can see in the first image. The only line is between two samples that coincidentally have the same value (duration in milliseconds).
The only way I’ve found is to change the Format (in query options) from Time series to Table, but this removes all the labels from the Prometheus metric (see second image), which I need.
You are saving duration as a label, which doesn’t look good to me. Are you sure that you want that?
That’s causing that each point is independend = timeserie with just one point.
Sorry, I misunderstood your first answer. In the first metric I posted (the one used in my panel, in the two images at the beginning), duration is both a label and the value of the metric itself, as you can see:
Do you want just connect those point (and you don’t care about other issues, which you may have in the future thanks to bad data model) or do you want to make it right?
For now, I would just like to connect these points without the labels ‘disappearing’ from the legend (see difference below), so that I can regex and intercept in overrides the label “actualStatus” and change the colour of the points depending on its value.
[same query same config, just switching from Time Series to Table in Query options"]
Points disconnected, correct legend with all labels: