flant / grafana-statusmap

Grafana panel plugin to visualize status of multiple objects over time
MIT License
829 stars 43 forks source link

Avoid multipe values in buckets #196

Open TillekHE opened 3 years ago

TillekHE commented 3 years ago

Hi, I am using the Grafana Panel „Statusmap” to display a boolean variable. I’ve been using the Panel for about 1.5 years so far and was always very happy with it, but lately I’ve struggled a bit. A couple of month ago an update was released which groups several values in buckets, this happens even when the option "Buckets - Multiple values" is disabled. I couldn’t find a possibility to make sure that every datapoint is displayed as a single bucket (like it was before). Is there a possibility to make sure that does not happen?

diafour commented 3 years ago

Hello! Indeed, there was a rework of the bucket calculation mechanism. The previous version was written with several assumptions about input data, leading to several bugs when the plugin receives "not good" data with interleaved timestamps or sparsed moments.

One of the main goals of this plugin is to set the increased period for the datasource. This period is used to get just one aggregated value for one wide-enough bucket, and buckets alignment is logical for this situation.

See this comment: https://github.com/flant/grafana-statusmap/issues/53#issuecomment-658685688

There is a demand for correct displaying of sparsed moments and data with status change only (#194 #154 #151). I've planned to address this issue in the next sprint. It'll be great if you share more details if possible: