Closed myshzzx closed 9 months ago
duplicated with previous issue try follow suggestion here https://github.com/Altinity/clickhouse-grafana/issues/498#issuecomment-1829409212
try to following query
SELECT
t,
groupArray((metric, cnt)) AS groupArr
FROM (
select time AS t, metric, count() cnt from xx group by t,metric
)
GROUP BY t
ORDER BY t
my sql looks like
select time, metric, count() from xx group by time,metric
and show like![image](https://github.com/Altinity/clickhouse-grafana/assets/2025090/db98279a-d834-489c-9620-aea569b2a93a)
then I add an alert , and get notice like this![image](https://github.com/Altinity/clickhouse-grafana/assets/2025090/92d47bfc-d7f1-4cff-9cf1-8d995ff7b284)