With the Business Text plugin, I can access the first row in a time series by setting it to render “all rows” and using syntax like {{data.0.cpIDChassisSerialNumber}}
. How can I access the last row? I tried -1
, that didn’t work.
For context — I’m trying to display text including label values from the most recent data point in a Prometheus query. If I set the Prometheus query to “Instant” then it works fine, unless there is “no data” at the end of the current time range. I’m trying to do a “Range” query, so that if there happens to be no data at the end of the time range then it will display the most recent value.