grafana-discrete-panel icon indicating copy to clipboard operation
grafana-discrete-panel copied to clipboard

Count & Group String by values not by timestamp

Open mtenrero opened this issue 6 years ago • 2 comments

I'm trying to group my metrics in three states RED, YELLOW & GREEN, them, are stored in InfluxDB as a string, the query is : SELECT "YYYY" FROM "XXXX" WHERE $timeFilter but the results are always the same, sorted by tiemestamp and not grouped by value like in the screenshots provided in the readme.

Desired representation: image

Actual representation: image

(Legend works correctly)

Is there any kind of bug or am I doing something wrong?

By the way, great job with the panel!

mtenrero avatar Nov 13 '17 11:11 mtenrero

@mtenrero Hi! Can you help with SQL? I have string data in DB (OPEN\CLOSED) and if i switch "Format as..." to "Table" panel show request error without errors) And if i use "Time series" panel show null point or unknown...or show two panels. One for "open" and one for "closed".

Asgoret avatar Feb 05 '18 10:02 Asgoret

I have too... Panel shows two lines. One for "ON"and one for "OFF"

Bagunda avatar Feb 04 '19 21:02 Bagunda