-
What Grafana version and what operating system are you using?
-
I’m using Grafana v10.4.1 (d94d597d847c05085542c29dfad6b3f469cc77e1)
-
What are you trying to achieve?
I’m trying to create a time-series visualization panel with and legend to be able to used as clickable filters -
How are you trying to achieve it?
Using MSSQL data source to fetch data with the bellow query:
SELECT
$__timeGroup(UtcDate, '1s') as time,
COUNT(hash) as value,
ClientId as metric
FROM
AqsCscClientSignRequests
WHERE
Action = 0
AND
$__timeFilter(UtcDate)
AND
ClientId in ($client)
GROUP BY
ClientId, $__timeGroup(UtcDate, '1s')
- What did you expect to happen?
I was expecting to have the values of distinct metric as legend options.