Get the App
SLTechnology News&Howtos  ›  Database  › 

Influxdb query write operation

Shulou Source: shulou.com Published: 2022-06-01 08:38:34 10月04日 Update

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 "

Tags: Data mode terminal query oolong scene I like interface method is in space type page Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Microsoft Xiaomi Shulou Technology macOS