diff --git a/README.md b/README.md index ec507a3314..c14ad98f70 100644 --- a/README.md +++ b/README.md @@ -29,30 +29,30 @@ We recommend installing InfluxDB using one of the [pre-built packages](https://i ### Create your first database ``` -curl -XPOST 'http://localhost:8086/query' --data-urlencode "q=CREATE DATABASE mydb" +curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE DATABASE mydb" ``` ### Insert some data ``` -curl -XPOST 'http://localhost:8086/write?db=mydb' \ +curl -XPOST "http://localhost:8086/write?db=mydb" \ -d 'cpu,host=server01,region=uswest load=42 1434055562000000000' -curl -XPOST 'http://localhost:8086/write?db=mydb' \ +curl -XPOST "http://localhost:8086/write?db=mydb" \ -d 'cpu,host=server02,region=uswest load=78 1434055562000000000' -curl -XPOST 'http://localhost:8086/write?db=mydb' \ +curl -XPOST "http://localhost:8086/write?db=mydb" \ -d 'cpu,host=server03,region=useast load=15.4 1434055562000000000' ``` ### Query for the data ```JSON -curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" \ +curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "db=mydb" \ --data-urlencode "q=SELECT * FROM cpu WHERE host='server01' AND time < now() - 1d" ``` ### Analyze the data ```JSON -curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" \ +curl -G "http://localhost:8086/query?pretty=true" --data-urlencode "db=mydb" \ --data-urlencode "q=SELECT mean(load) FROM cpu WHERE region='uswest'" ```