influxdb/tests/tmux
Cory LaNou 78ed56a416 add more curl seed scripts, update tmux test to use dedicated seed script 2015-02-04 13:52:47 -07:00
..
3_shards add more curl seed scripts, update tmux test to use dedicated seed script 2015-02-04 13:52:47 -07:00
README.md generating sample json for metrics 2015-01-26 12:01:50 -07:00
sample.json generating sample json for metrics 2015-01-26 12:01:50 -07:00
seed.sh add more curl seed scripts, update tmux test to use dedicated seed script 2015-02-04 13:52:47 -07: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"},
        "timestamp": "{{date(new Date(2015, 15, 1), new Date(), 'YYYY-MM-ddThh:mm:ss Z')}}",
        "values": {
          "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