Influxdb query write operation
There are several ways to operate influxdb, there are scenarios where you like to write data in http API, or operate through influxdb terminals (my favorite type), each of which is suitable.
Introduce how to operate through API interface and terminal:
Http://192.168.15.104:8086/write?db=mydb&cpu_load_short,host=server01,dc=mycat,region=us-west value=0.64
Terminal writes:
Use mydb
Insert cpu_load_short,host=server01,dc=mycat,region=us-west value=0.64
Query data: (in the URL window), at first thought to be in the 8083 page of the query, has been a dragon.
Http://192.168.15.104:8086/query?db=mydb&q=SHOW%20MEASUREMENTS # View the measurements under the library
Http://192.168.15.104:8086/query?db=mydb&q=select%20*%20from%20disk_use # View specific data
# # Notes:
20 is a space
% 22 is "