How can I aggregate metrics per day in a Grafana table?

吃可爱长大的小学妹 提交于 2019-12-09 15:46:50

问题


I am charting data with a Grafana table, and I want to aggregate all data points from a single day into one row in the table. As you can see below my current setup is displaying the values on a per / minute basis.

Question: How can I make a Grafana table that displays values aggregated by day?

|        Day        | ReCaptcha  | T & C |
|-------------------|------------|-------|
| February 21, 2017 |   9,001    | 8,999 |
| February 20, 2017 |      42    |    17 |
| February 19, 2017 |     ...    |   ... |

回答1:


You can use the summarize function on the metrics panel. Change the query by pressing the + then selecting transform summarize(24h, sum, false) this will aggregate the past 24hr data points into a single point by summing them.

http://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.summarize

results



来源:https://stackoverflow.com/questions/42374268/how-can-i-aggregate-metrics-per-day-in-a-grafana-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!