add plugin example
This commit is contained in:
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…
Reference in New Issue