forked from pneymrl2f/nightingale
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
632 B
33 lines
632 B
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
now=$(date +%s)
|
||
|
|
||
|
echo '[
|
||
|
{
|
||
|
"metric": "plugin_example_gauge",
|
||
|
"tags": {
|
||
|
"type": "testcase",
|
||
|
"author": "ulric"
|
||
|
},
|
||
|
"value": '${now}',
|
||
|
"type": "gauge"
|
||
|
},
|
||
|
{
|
||
|
"metric": "plugin_example_rate",
|
||
|
"tags": {
|
||
|
"type": "testcase",
|
||
|
"author": "ulric"
|
||
|
},
|
||
|
"value": '${now}',
|
||
|
"type": "rate"
|
||
|
},
|
||
|
{
|
||
|
"metric": "plugin_example_increase",
|
||
|
"tags": {
|
||
|
"type": "testcase",
|
||
|
"author": "ulric"
|
||
|
},
|
||
|
"value": '${now}',
|
||
|
"type": "increase"
|
||
|
}
|
||
|
]'
|