I have been wanting a CDF panel since I first stumbled into the Grafana world. And love and behold, it now exists!
@sebastiangunreben I think it is you who developed it? Thanks a bunch! This is really useful for me. My only issue is that I struggle to get the Legend to work properly. As seen in this example, I get to name the three first number series, but the last refuses to be named.
Working:
from(bucket:"piprobe/autogen")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r._measurement == "ping" and
r._field == "rtt" and
r.probe == "${probe}"
)
|> aggregateWindow(every: ${interval}, fn: mean)
|> map(fn:(r) => ({ _time:r._time,_value:r._value,_measurement:"mean"}))
Failing:
from(bucket:"piprobe/autogen")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r._measurement == "ping" and
r._field == "rtt"
)
|> map(fn:(r) => ({ _time:r._time,_value:r._value}))
|> aggregateWindow(every: ${interval}, fn: mean)
|> map(fn:(r) => ({ _time:r._time,group:r._value}))
I have tried multiple variant of the map
function, removing it all together, keeping _value
named as _value
and introducing _measurement:"group"
ect. But it just keeps being unnamed. Any hints as to why I struggle to get the legend for all numberseries?