Multiple series with one query in Grafana using PostgresQL as datasource

Multiple series with one query in Grafana using PostgresQL as datasource

Try this Grafana PostgreSQL query:

SELECT
  $__timeGroupAlias(started_at, $__interval),
  project_id::text AS metric,
  AVG(duration) AS durations
FROM jobs
WHERE $__timeFilter(started_at)
GROUP BY 1,2
ORDER BY 1

Multiple series with one query in Grafana using PostgresQL as datasource

Leave a Reply

Your email address will not be published.