Skip to content

Commit

Permalink
compose: fix kcg dashboard query (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn authored Dec 2, 2023
1 parent a1750f5 commit 5876530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compose/kcg/grafana/dashboards/viz-ch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
[
Expand Down

0 comments on commit 5876530

Please sign in to comment.