Someone please help me on the below query. its not running. Is that 
function not supported in Influxdb  or did I make anything wrong in the 
query syntax ?

SELECT mean("sensor") FROM sensor WHERE hostname = 'www.dev.local' AND 
sensor_type = 'lmsensors' AND sensor_class = 'temperature' AND sensor_descr 
= 'temp2' AND sensor_index = (show tag values from sensor with 
key=sensor_index where hostname ='www.dev.local' AND sensor_descr='temp2')

If I run the above query separately, I can get the output.

Query 1 : show tag values from sensor with key=sensor_index where hostname 
='www.dev.local' AND sensor_descr='temp2'
Query 2 : SELECT mean("sensor") FROM sensor WHERE hostname = 
'www.dev.local' AND sensor_type = 'lmsensors' AND sensor_class = 
'temperature' AND sensor_descr = 'temp2' AND sensor_index = <OutputOfQuery1>

But I try to combine those two query into single query. Its not running. 
Please help me on this.

Thanks in Advance.


-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/0093db4b-bf7d-41d2-901e-629fde56ad7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to