如何在不使用 curl 的情况下通过 post 调用将数据发送到 influxdb?

How to send data to influxdb via post call without using curl?

我是 influxdb 的新手,我正在尝试将数据添加到 influx db。我在文档页面上发现可以使用 curl.

curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'

但我想从浏览器中点击它并能够将数据插入 influxdb。

对于 select 查询:

http://localhost:8086/query?db=mydb&q=select * from temperature

这是一个 url,可用于从 influxdb 获取数据。有没有类似的方法向influxdb插入数据。 我尝试从 curl 创建 url 但没有成功。

有点晚但是:

您应该通过 POST

调用 REST
url: http://localhost:8086/write?db=mydb
type :POST
body: measurement,value=123 thetime=1502474399000