grafana-toolbox / grafanimate

Animate timeseries data with Grafana.
https://community.panodata.org/t/grafanimate/205
GNU Affero General Public License v3.0
47 stars 6 forks source link

Adjust the sequencing mode (window, cumulative) #7

Closed amotl closed 3 years ago

amotl commented 3 years ago

Note: The wording of this description has been adjusted after 62541a9. Please note this reflects the current state, but does not match this patch.

The new scenario parameter mode can have one of two values:

While window was hardcoded beforehand, you can now also use cumulative. It is a suitable flavor when aiming to demonstrate the progress of a timeseries starting at a fixed point in time.

Example:

grafanimate --grafana-url=https://play.grafana.org/ --dashboard-uid=000000012 --scenario=playdemo

https://github.com/panodata/grafanimate/blob/7efec10c2eccf26557bfcc25b38dbc311bccf086/grafanimate/scenarios.py#L38-L49

/cc @wetterfrosch