influxdb/tests/tmux
Ben Johnson 5a0d1ab7c1 rename influxdb/influxdb to influxdata/influxdb
This commit changes all the import and URL references from:

    github.com/influxdb/influxdb

to:

    github.com/influxdata/influxdb
2016-02-10 10:26:18 -07:00
..
3_shards rename influxdb/influxdb to influxdata/influxdb 2016-02-10 10:26:18 -07:00
README.md change timestamp to time 2015-05-11 12:28:47 -05:00
sample.json change timestamp to time 2015-05-11 12:28:47 -05:00
seed.sh change timestamp to time 2015-05-11 12:28:47 -05:00
server_8086.toml Don't index configs, just use port number 2015-01-28 14:32:23 -08:00
server_8087.toml Don't index configs, just use port number 2015-01-28 14:32:23 -08:00
server_8088.toml Don't index configs, just use port number 2015-01-28 14:32:23 -08:00

README.md

Generating Sample JSON

Use http://www.json-generator.com/

[
  '{{repeat(1000,1000)}}',
  {
    "database": "foo", 
    "retentionPolicy": "bar",
    "points": [
      {
        "name": "cpu", 
        "tags": {"host": "server01"},
        "time": "{{date(new Date(2015, 15, 1), new Date(), 'YYYY-MM-ddThh:mm:ss Z')}}",
        "fields": {
          "value": '{{integer(1, 1000)}}'
        }
      }
    ]
  }
]

You can curl the data with the following command:

cat sample.json | curl -d @- -H "Content-Type: application/json" http://localhost:8086/write