influxdb常见指令集

SELECT time,pointId,count(value) FROM “abnormal” GROUP BY pointId LIMIT 10

SELECT count(“value”) FROM “abnormal” WHERE $timeFilter GROUP BY time(1d), “pointId” fill(null)

SELECT count(“value”) FROM “abnormal” WHERE $timeFilter GROUP BY time(1d) fill(null)

#数据存储策略基本操作
#查询
SHOW RETENTION POLICIES ON datatest
#创建
CREATE RETENTION POLICY <retention_policy_name> ON <database_name> DURATION REPLICATION [SHARD DURATION ] [DEFAULT]
#修改
ALTER RETENTION POLICY “1d” ON “datatest” DURATION 1d DEFAULT
#删除
drop retention POLICY “2_hours” ON “telegraf”

#连续查询
#查询
SHOW CONTINUOUS QUERIES
#删除
DROP CONTINUOUS QUERY <cq_name> ON <database_name>
#创建
CREATE CONTINUOUS QUERY redis_1d ON hollysys_project BEGIN SELECT count(value) INTO abnormal_copy_1d_count FROM abnormal GROUP BY time(1d), “pointId” END

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值