mirror of
https://github.com/netsampler/goflow2.git
synced 2024-05-06 15:54:52 +00:00
compose: fix kcg dashboard query (#242)
This commit is contained in:
@ -77,7 +77,8 @@
|
||||
"group": [],
|
||||
"intervalFactor": 1,
|
||||
"metricColumn": "none",
|
||||
"query": "SELECT\n t,\n sum(sumbytes) AS sumbytes\nFROM (\n SELECT\n $timeSeries AS t,\n sum(bytes*sampling_rate) as sumbytes\n FROM $table\n WHERE $timeFilter\n GROUP BY t\n\n UNION ALL\n\n SELECT\n intDiv($from+number*$interval, $interval)*$interval*1000 AS t,\n 0 AS sumbytes\n FROM numbers(intDiv($to-$from, $interval))\n)\nGROUP BY t\nORDER BY t", "refId": "A",
|
||||
"query": "SELECT\n t,\n sum(sumbytes) AS sumbytes\nFROM (\n SELECT\n $timeSeries AS t,\n sum(bytes*sampling_rate) as sumbytes\n FROM $table\n WHERE $timeFilter\n GROUP BY t\n\n UNION ALL\n\n SELECT\n toInt64(intDiv($from+number*$interval, $interval)*$interval*1000) AS t,\n 0 AS sumbytes\n FROM numbers(intDiv($to-$from, $interval))\n)\nGROUP BY t\nORDER BY t",
|
||||
"refId": "A",
|
||||
"round": "0s",
|
||||
"select": [
|
||||
[
|
||||
|
Reference in New Issue
Block a user