-
Notifications
You must be signed in to change notification settings - Fork 91
Description
Is your feature request related to a problem? Please describe
Sometimes it is useful to see cumulative bar chart with growing hits or stats (when stats toggle is enabled). The cumulative bar chart allows quickly investigation of growth rate for the number of matching logs on the selected time range.
Describe the solution you'd like
To add cumulative toggle to the bar chart. If it is enabled, then every bar for the particular group must include the sum of all the previous bars for that group on the chart. The cumulative toggle must work for both hits bar chart and stats bar chart.
Describe alternatives you've considered
No response
Additional information
It is possible to emulate cumulative bar chart with the running_stats pipe when the stats toggle is enabled. See, for example, https://play-vmlogs.victoriametrics.com/select/vmui/?#/?query=kubernetes.container_name%3A*+%7C+by+%28kubernetes.container_name%29+count%28%29+hits+%7C+running_stats+by+%28kubernetes.container_name%29+sum%28hits%29+hits&g0.range_input=1d&g0.end_input=2025-12-25T23%3A00%3A00&g0.relative_time=none&graph_mode=stats .
Note that the web UI shouldn't modify the query with the running_stats pipe, since this is the source of potential bugs with incorrect query modifications. Instead, the web UI must perform cumulative calculations on the data received from VictoriaLogs for the original query.
While at it, please remove the total: ... hits from the bar chart when the stats toggle is enabled, since it has no practical sense on the stats bar chart.