grafana-discrete-panel icon indicating copy to clipboard operation
grafana-discrete-panel copied to clipboard

Indicating state into the future

Open royemmerich opened this issue 7 years ago • 9 comments

I'm not sure whether this is a bug or whether I've incorrectly constructed my query. The custom zoom shown in the image below spans a few days into the past and a few into the future. The discrete panel doesn't stop showing state at the point where data is no longer available

screen shot 2017-04-02 at 15 38 30

Just to put this into context, below is a screenshot showing this compared to some of our other data.

screen shot 2017-04-02 at 15 42 19

royemmerich avatar Apr 02 '17 13:04 royemmerich

Interesting! right now it fills up everything to right right with the last value. (actually every value fills up to the right and they just stack)

I'll add an option to cover up the future too

ryantxu avatar Apr 11 '17 20:04 ryantxu

This will be super useful. I am using this panel to display active internet connection and obviously don't receive any data when there is no connection. So the panel keeps displaying active even though the connection is down until the data is backfilled. It would be great if the panel had an option to customize "no data" instead of using the last value.

image

AnnaKaru avatar Aug 24 '17 13:08 AnnaKaru

That's interesting -- I think you're all reporting behavior that I would like to see. I'm using v0.0.6 on grafana 4.5.1. My data is single point values of "on" or "off". I see 'null' displayed between on/off entries. I think I've frobbed every option available but haven't seen a change in behavior.

tczerwonka avatar Sep 29 '17 22:09 tczerwonka

@tczerwonka

I see 'null' displayed between on/off entries

If you are using influx, consider using fill(previous) if you have a group by clause.

ryantxu avatar Mar 14 '18 22:03 ryantxu

+1

It would be great if the panel had an option to customize "no data" instead of using the last value.

kccheung avatar Aug 30 '18 07:08 kccheung

+1 Are there any news about It?

busi91 avatar Sep 05 '18 09:09 busi91

Just to add on here with another example, I track my furnace off/on state and visualize it with this panel. If the furnace is on and the time range includes a future time (e.g. "Today"), it is a little funny to see the total runtimes. Of course, at least in my case I can just use the "Today so far" range to avoid it, but that might not work for everyone and obviously there are valid reasons to use future times.

In this image, the time range is set to "Today" and now is currently 18:00 and the furnace is running. (Also, you can see here I'd really like to have #69 fixed!)

image

kpine avatar Nov 16 '18 02:11 kpine

+1 did anyone find a work around?

mtncodes avatar Mar 11 '20 19:03 mtncodes

+1

sarenameas avatar Oct 29 '22 01:10 sarenameas