🌐
Grafana
community.grafana.com › dashboards
How to sum up running time for shift totals - Dashboards - Grafana Labs Community Forums
October 5, 2023 - Hello I am seeking some advice on how to set up my dashboard in grafana. i have an instance of grafana that is connected to influxdb. It is querying 10 run signals for 10 different machines, i currently have my dashboard set up with a state timeline visualisation which simply shows when the ...
🌐
Reddit
reddit.com › r/grafana › running total with changes (i think)
r/grafana on Reddit: Running total with changes (I think)
October 14, 2022 - Edit: So I think this is closer so what I'm looking for: SELECT SUM(count(id)) OVER (ORDER BY "join") from guild WHERE "join" > "leave" OR "leave" IS…
Discussions

Feature: Transformation that will store a running (cumulative) total for a value output from an expression that I have used in a query
Feature: Transformation that will store a running (cumulative) total for a value output from an expression that I have used in a query#74480 More on github.com
🌐 github.com
1
September 6, 2023
Getting values and running totals
how do you handle “gaps” in the records when counting totals I want to keep a record of the number of issues that change to a status in a day (a->b) so a-- and b++ so at the end of the day I will have x that have moved from a to b what I also want to do is to have a total of a and b at ... More on community.grafana.com
🌐 community.grafana.com
0
0
July 31, 2017
Cumulative sum over time
Hello I’m trying to simply display the cumulative sum of my rain gauge over a certain periode of time. The rain gauge has a 5min resolution , that i would like to see over one 1hour As you can see on the graphs , the cumulative sum almost work but never goes back to zero when it doesn’t ... More on community.grafana.com
🌐 community.grafana.com
3
1
January 31, 2021
Display sum of all gauge's values
Hello, I’m very new to Grafana and Prometheus. I’m using Grafana v8.2.6 on Windows 10, along with Prometheus. It scrapes a Gauge metric that is sent every 2 minutes. I would like to display a stat that corresponds to a running sum of all values the Gauge ever had. More on community.grafana.com
🌐 community.grafana.com
3
0
May 31, 2023
🌐
GitHub
github.com › grafana › grafana › issues › 20982
running total / cumulative sum · Issue #20982 · grafana/grafana
December 9, 2019 - My data looks like this: 0 0 1 1 0 1 0 1 1 0 0 1 My graph should use these values: 0 0 1 2 2 3 3 4 5 5 5 6 I've found no way to get this so I request it here. My use case: I monitor pumps and valves. What I have in the database is 1 for ...
Author: grafana
🌐
GitHub
github.com › grafana › grafana › issues › 74480
Feature: Transformation that will store a running (cumulative) total for a value output from an expression that I have used in a query · Issue #74480 · grafana/grafana
September 6, 2023 - grafana / grafana Public · ... #77029 · Closed · Feature: Transformation that will store a running (cumulative) total for a value output from an expression that I have used in a query#74480 ·...
Author: grafana
🌐
Grafana
community.grafana.com › t › getting-values-and-running-totals › 2089
Getting values and running totals - templating - Grafana Labs Community Forums
July 31, 2017 - how do you handle “gaps” in the records when counting totals I want to keep a record of the number of issues that change to a status in a day (a->b) so a-- and b++ so at the end of the day I will have x that have moved from a to b what I also want to do is to have a total of a and b at the end of the day so if at the start of the day, a is 10, b is 20 and we have 5 move from a to b, the values would be a-5, b+5, aTotal = 5, bTotal is 25 but let’s say that there is no change for a week do y...
🌐
Grafana
community.grafana.com › t › cumulative-sum-over-time › 42434
Cumulative sum over time - Grafana - Grafana Labs Community Forums
January 31, 2021 - Hello I’m trying to simply display the cumulative sum of my rain gauge over a certain periode of time. The rain gauge has a 5min resolution , that i would like to see over one 1hour As you can see on the graphs , the cumulative sum almost work but never goes back to zero when it doesn’t ...
🌐
Grafana
community.grafana.com › dashboards
Display sum of all gauge's values - Dashboards - Grafana Labs Community Forums
May 31, 2023 - Hello, I’m very new to Grafana and Prometheus. I’m using Grafana v8.2.6 on Windows 10, along with Prometheus. It scrapes a Gauge metric that is sent every 2 minutes. I would like to display a stat that corresponds to a running sum of all values the Gauge ever had.
🌐
Long-term Memory
blog.dest-unreach.be › 2020 › 08 › 16 › cumulative-graphs-prometheus
Long-term Memory – Cumulative graphs in Prometheus
August 16, 2020 - With the help of SuperQ and roidelapluie, we figured out some tools to help us: Grafana exposes a few variables that you can use inside your query. Especially the $__from variable looks interesting for this case. ... metric_total - metric_total offset (time() - $__from) doesn't work, since offset requires a constant offset, not something dynamic
Find elsewhere
🌐
Grafana
community.grafana.com › prometheus
How to get the cumulative/total resource usage of resources say RAM or CPU over a selected duration of time - Prometheus - Grafana Labs Community Forums
August 12, 2021 - Hi, I want to calculate the total consumption of memory/cpu usage (with underlying kubernetes infrastructure) monotonously over a period of time(lets say 3 months). I tried query like sum(container_memory_usage_bytes{namespace=~“$namespace”,pod=~“$pod”})/1024/1024/1024 I also tried to use the increase() and sum_over_time() functions to get the cumulative sum of the total resource consumed.
🌐
Grafana
community.grafana.com › prometheus
Calculate total time of process running with windows exporter - Prometheus - Grafana Labs Community Forums
March 9, 2022 - Hi, I’m using prometheus windows exporter to show cpu usage of each process on my PC. Currently it looks something like this With the query being ((avg without (cpu) (sum(irate(windows_process_cpu_time_total{instance="$server",process!="Idle",}[5m])) by (process)) / 12)* 100) I would like to do 2 things: First there are lot of processes which use very low amount of cpu, is there some easy way to set it up to filter only procesess that use for example 1% and more?
🌐
Graphite
graphite.readthedocs.io › en › latest › functions.html
Functions — Graphite 1.2.0 documentation
NonNegativeDerivative adjusted for the series time interval This is useful for taking a running total metric and showing how many requests per second were handled.
🌐
Grafana
community.grafana.com › dashboards
How to do a basic summation? - Dashboards - Grafana Labs Community Forums
June 30, 2023 - What Grafana version and what operating system are you using? Running a Docker container from the grafana/grafana image, launched 6/28/23 so likely the most recent version. What are you trying to achieve? I’m trying to sum several metrics into one total number.
🌐
OneUptime
oneuptime.com › home › blog › how to create cumulative function that resets daily in grafana
How to Create Cumulative Function That Resets Daily in Grafana
December 17, 2025 - Instead, use increase() with Grafana's $__range variable and the "Today so far" time range setting to achieve daily alignment. Configure the panel or dashboard time range so the first data point is midnight in the dashboard time zone: ... # Running sum of API calls today sum( increase(api_requests_total{endpoint="/api/v1/users"}[5m]) ) by (method)
🌐
Grafana
community.grafana.com › time series panel
Calculate total time above value? - Time Series Panel - Grafana Labs Community Forums
February 16, 2022 - I’m looking to make a tile that shows total runtime of generator usage for my power dashboard. I’d like to calculate total time above say 100w. Is it possible to do this? I’ve poked around for a while and don’t see an easy way Here is the graph I will probably copy to make it And for ...
🌐
Grafana
community.grafana.com › t › runtime-of-devices › 23775
Runtime of devices - Grafana Labs Community Forums
December 9, 2019 - I monitor pumps and valves. What I have in the database is 1 for “on” and 0 for “off” every minute. What I want is a graph wich reflects the time a pump is running or a valve is open for the currently active time period…
🌐
Grokipedia
grokipedia.com › troubleshooting prometheus counters in grafana
Troubleshooting Prometheus Counters in Grafana — Grokipedia
January 14, 2026 - Prometheus is an open-source monitoring ... can be queried and rendered in Grafana panels to track cumulative events.[2] Counter metrics in Prometheus are designed to track cumulative values that only increase over time, providing a running total of events or occurrences without ...
🌐
Grafana
community.grafana.com › t › cloudwatch-cumulative-total-over-time › 38002
CloudWatch cumulative total over time - Grafana - Grafana Labs Community Forums
October 15, 2020 - Is there any way to add a cumulative total over time that would in effect add a metric that continues to grow by adding all previous metrics over time? For example, using AWS/DataSync’s FilesTransferred metric: Of course it’s nice to be able to have the table present a “Total” but I’m ...
🌐
Grafana
community.grafana.com › prometheus
Get total of metrics when value all time equal 1 - Prometheus - Grafana Labs Community Forums
January 16, 2025 - I need to build a Grafana chart that shows the number of completed test runs by status for a specific branch. For example, over the last 12 hours for the develop branch, 12 runs passed and 3 runs failed. I have a Gauge metric defined in TypeScript: this.runStatusGauge = new Gauge({ name: 'test_run_status', help: 'Test run status', labelNames: ['runName', 'status'], registers: [this.register], }); I always set this metric to 1, only changing the status label: this.runStatusGauge.set( ...
🌐
InfluxData Community
community.influxdata.com › influxdb 1 › influxql
How to get a cumulative sum of a product from different series? - InfluxQL - InfluxData Community Forums
April 4, 2024 - Hi all, I am using grafana 10.4.1 as part of home assistant on a raspi 4 together with influxdb 1.8.10. I want to have a cumulative sum in a graph of my savings from my solar panels. That is easy in my eyes as long a the kWh cost remains constant. I do have a metric with the sum of the self-used kWh and this can be multiplied by some constant kWh cost.