add plugin example

master
UlricQin 4 years ago
parent 8f4597045d
commit 88e6e4bf56

@ -0,0 +1,36 @@
#!/bin/sh
now=$(date +%s)
echo '[
{
"metric": "plugin_example_gauge",
"tags": {
"type": "testcase",
"author": "ulric"
},
"time": '${now}',
"value": '${now}',
"type": "gauge"
},
{
"metric": "plugin_example_rate",
"tags": {
"type": "testcase",
"author": "ulric"
},
"time": '${now}',
"value": '${now}',
"type": "rate"
},
{
"metric": "plugin_example_increase",
"tags": {
"type": "testcase",
"author": "ulric"
},
"time": '${now}',
"value": '${now}',
"type": "increase"
}
]'
Loading…
Cancel
Save