As an update to@ekle's workaround, I was able to usedistinct()with his query: SELECT distinct("host") FROM ( SELECT "bytes.committed","host" FROM "jvm.memory" WHERE time > now()-1h ) To make the query respect the currently selected Grafana time window, you use the$timeFilter: ...