以下查询在mysql中受支持,但它在influxql中抛出和错误: select (select sum(count) from measurement where operation='add') -(select sum(count) from measurement where operation='delete'); 如何使用单个influxql查询来完成此操作?在这种情况下,我不认为influxql允许两个不同的where子句。
为了获取列名(我认为它在InfluxDB中称为“标记”),和也使用了以下语法:
curl -G "http://myinfluxdb.com:123/query?u=admin&p=123" --data-urlencode "db=dbname" --data-urlencode "q=select * from xy where "articlenumber"=~ /12345678/ and time>='2021-10-30T10:00:00Z' and time<='2021-10-3
我有下面的查询,需要用硬编码值替换varibale。SELECT mean("count") / $send_interval FROM "$measurement_name" WHERE ("transaction" = 'all' AND "application" =~ /^$application$/) AND $timeFilter GROUP BY time($__interval) fill(null)
我有相同的时间范围(2022-05-0