Autor Thema: Connection with Influxdb - cURL  (Gelesen 6146 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline bartmarchand

  • Newbie
  • *
  • Beiträge: 8
    • Profil anzeigen
Connection with Influxdb - cURL
« am: 12. Januar 2018, 20:12:16 »
Hello,

I'm trying to connect with Influxdb HTTP API.
The working cURL command on my debian system is: curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'

I've tried the same command in the http demo, but there is a http get 252.
What is the syntax for using cURL?
Thanks

Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 378
    • Profil anzeigen
Re: Connection with Influxdb - cURL
« Antwort #1 am: 13. Januar 2018, 22:56:04 »
hello

in the program http_demo the block http_get is used.

the module http_get can only execute an http-get command but no http-post command.