influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

[0.10.0] Include tag values in response of last()

Open TechniclabErdmann opened this issue 10 years ago • 3 comments

Hi community,

sience the last updates of influxdb, I don't know how to solve this problem:

I want to create a query which repeats the last value of a series and its tag values. I don't want to have the tag values as seperated columns. I need them in the header to use them in Grafana as alias.

SELECT last("value"), max, min FROM airtemp
--> returns the tag values as columns.
SELECT last("values") FROM airtemp GROUP BY max, min
--> returns multiple series if there are more than one max/min-value in the whole airtemp-serie.

Can you give me a hint, whether this is possible with a influx query or whether I have to change Grafana code? If you need more examples, please ask me.

Thanks, Niklas

TechniclabErdmann avatar Mar 11 '16 16:03 TechniclabErdmann

+1. I've been struggling with this too.

BrannonKing avatar Mar 11 '16 21:03 BrannonKing

@The-Nik can you give me an example of the output you want or expect?

jsternberg avatar Mar 14 '16 15:03 jsternberg

I'm going to close this since more information hasn't been given about what is needed. Please reopen if you have more information. Thanks.

jsternberg avatar Apr 14 '16 14:04 jsternberg