Discussion:
[influxdb] Line protocol and HTTP API
a***@hushmail.com
2018-05-24 13:17:58 UTC
Permalink
InlfuxDBers,

I have a local running InfluxDB server and I’ve created a database called
“mongodb”

I am trying to write to the HTTP API, with a measurement name of ‘locust’
and a tag ‘Name-urlBash’, all the rest are fields.

*curl -i -XPOST 'http://localhost:8086/write?db=mongodb' --data-binary
'locust,Name=urlBash requests=314457,failures=0,Median response time=1,Min
response time=0,Max response time=328,Requests\/s=3.30'*

There are no errors returned, but no measurement. Could anyone tell me
where I am going wrong?

Many Thanks

Aidy
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/cac8eee9-d940-4756-9d68-1a6509655f77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
a***@hushmail.com
2018-05-24 13:56:57 UTC
Permalink
Error = bash: --data-binary: command not found
When --data-binary is in the curl man page!

On 5/24/2018 at 2:18 PM, ***@hushmail.com wrote: InlfuxDBers,


I have a local running InfluxDB server and I’ve created a database
called “mongodb”

I am trying to write to the HTTP API, with a measurement name of
‘locust’ and a tag ‘Name-urlBash’, all the rest are fields.

curl -i -XPOST 'http://localhost:8086/write?db=mongodb'; --data-binary
'locust,Name=urlBash requests=314457,failures=0,Median response
time=1,Min response time=0,Max response time=328,Requests/s=3.30'

There are no errors returned, but no measurement. Could anyone tell me
where I am going wrong?

Many Thanks

Aidy

--
Remember to include the version number!
---
You received this message because you are subscribed to the Google
Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/cac8eee9-d940-4756-9d68-1a6509655f77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/20180524135658.1164AC0550%40smtp.hushmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...