generating sample json for metrics
parent
d985818976
commit
e972d6c030
|
@ -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
|
||||
```
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue