Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Influxdb query write operation

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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 "

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 225

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report