InfluxDB总结

 https://docs.influxdata.com/influxdb/v1.7/introduction/getting-started/

influx help
influx -version
...

command line interface (CLI)
先打开influxd服务器 influxd

help
show databases;
use db_name;
show measurements;
show tag keys
show field keys
exit
influx 进入influxQL模式:

influxQL:
insert measurements_name,tag1=1,tag2=2 field1=3,field2=4 
select * from measures_name where field1>0.5 and time>now()-10h limit 10


//////////////////////////////////////////////////////////////////////////////////



NOTES:
databases
measurements: ~= table
tag: indexed
field: unindexed,influxDB scan every value
retation policy:for how long data is kept and how many copies are in clusters
series:data which has the same policy\tag\measurement
point:a single data has time/tag/field/measurement

 

你可能感兴趣的:(学习笔记)