1

I am not able to see the output in grafana v 7.1.0 as per group by coil_id:

I use this query:

SELECT
  $__timeGroupAlias("time",$__interval),coil_id as coil,
  avg(drawing_force)*0.1 AS "force"
FROM drawing
WHERE
  $__timeFilter("time")
GROUP BY 1,2
ORDER BY 1,2

It shows result force on separate column and coil on different but need to see the result of force as per coil enter image description here

But the same result is displayed in PostgreSQL 10. The query I used here is:

select avg(drawing_force)*0.1 from drawing group by coil_id order by coil_id

The result shows 7 coil with average force enter image description here

Kindly suggest me to write PostgreSQL query in Grafana

derloopkat
  • 6,232
  • 16
  • 38
  • 45
Nitesh
  • 19
  • 6

0 Answers0