generating sample json for metrics

pull/1360/head
Cory LaNou 2015-01-26 12:01:50 -07:00
parent d985818976
commit e972d6c030
2 changed files with 16031 additions and 0 deletions

31
tests/tmux/README.md Normal file
View File

@ -0,0 +1,31 @@
## Generating Sample JSON
Use [http://www.json-generator.com/](http://www.json-generator.com/)
```json
[
'{{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:
```bash
cat sample.json | curl -d @- -H "Content-Type: application/json" http://localhost:8086/write
```

16000
tests/tmux/sample.json Normal file

File diff suppressed because it is too large Load Diff