Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VERSION 0.9.2 not support json format post? #3556

Closed
SiriusHu opened this issue Aug 5, 2015 · 6 comments
Closed

VERSION 0.9.2 not support json format post? #3556

SiriusHu opened this issue Aug 5, 2015 · 6 comments

Comments

@SiriusHu
Copy link

SiriusHu commented Aug 5, 2015

I found that json post is supported in early version, why not now?

@joshuawarner32
Copy link

The following has been working fine for me on 0.9.2:

$ curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary '{"database":"mydb","retentionPolicy":"default","points":[{"measurement":"cpu_load_short","tags":{"host":"server01","region":"us-west"},"timestamp":"2009-11-10T23:00:00Z","fields":{"value":0.64}}]}'
HTTP/1.1 204 No Content
Request-Id: 598c9852-3b7c-11e5-8749-000000000000
X-Influxdb-Version: 0.9.2
Date: Wed, 05 Aug 2015 14:14:57 GMT

@jwilder
Copy link
Contributor

jwilder commented Aug 5, 2015

@SiriusHu The JSON write format has been deprecated in favor of the line protocol. We did this because of performance reason related to JSON. The JSON writes still currently work but will be removed in a future release.

See #2696 for more background.

@jwilder jwilder closed this as completed Aug 5, 2015
@SiriusHu
Copy link
Author

SiriusHu commented Aug 6, 2015

thanks, I got it from 2696
Though I still think JSON is a more convenient way, PERFORMANCE is more I'm concerned with.

@CumpsD
Copy link

CumpsD commented Mar 28, 2016

Should they still work in 0.11? Do I have to pass in some allow deprecated flag? (I am trying to move data from a database to anotehr server, from 0.9.3 to 0.11.0)

@rossmcdonald
Copy link
Contributor

@CumpsD Please see #5512 for how to re-enable the deprecated JSON write path in v0.11. It will be entirely removed with v0.12.

@CumpsD
Copy link

CumpsD commented Mar 28, 2016

Thanks.

Is there a supported way to migrate data from one influxdb database to another (already existing server)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants