78ed56a416 | ||
---|---|---|
.. | ||
3_shards | ||
README.md | ||
sample.json | ||
seed.sh | ||
server_8086.toml | ||
server_8087.toml | ||
server_8088.toml |
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