From 5876530cfd4d90f3bb8e2c1333142160f9faebb6 Mon Sep 17 00:00:00 2001 From: Louis Date: Sat, 2 Dec 2023 15:07:06 +0100 Subject: [PATCH] compose: fix kcg dashboard query (#242) --- compose/kcg/grafana/dashboards/viz-ch.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose/kcg/grafana/dashboards/viz-ch.json b/compose/kcg/grafana/dashboards/viz-ch.json index f2b78f73..0cc0af2e 100644 --- a/compose/kcg/grafana/dashboards/viz-ch.json +++ b/compose/kcg/grafana/dashboards/viz-ch.json @@ -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": [ [