[英]Difference between two Grafana panels singlestat and graph with same query
I have created the following Grafana dashboard: 我创建了以下Grafana仪表板:
The singlestat panel uses the following query: singlestat面板使用以下查询:
SELECT sum("value") FROM "rails.pageviews"
WHERE $timeFilter
GROUP BY time($__interval) fill(null)
And the graph panel uses the exact same query: 图形面板使用完全相同的查询:
SELECT sum("value") FROM "rails.pageviews"
WHERE $timeFilter
GROUP BY time($__interval) fill(null)
How do I make the single-stat panel show the total amount of pageviews? 如何使单一状态面板显示总的浏览量? It should be 12 (8+2+2) and not 4, right? 应该是12(8 + 2 + 2),而不是4,对吧?
When I debug the data returned from Influxdb: 当我调试从Influxdb返回的数据时:
response:Object
results:Array[1]
0:Object
statement_id:0
series:Array[1]
0:Object
name:"rails.pageviews"
columns:Array[2]
0:"time"
1:"sum"
values:Array[73]
0:Array[1530870900000,null]
(...)
37:Array[1530882000000,null]
38:Array[1530882300000,8]
39:Array[1530882600000,null]
(...)
44:Array[1530884100000,null]
45:Array[1530884400000,2]
46:Array[1530884700000,null]
(...)
53:Array[1530886800000,null]
54:Array[1530887100000,2]
55:Array[1530887400000,null]
(...)
72:Array[1530892500000,null]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.