diff --git a/docs/plugin.example.sh b/docs/plugin.example.sh new file mode 100755 index 00000000..3724ac09 --- /dev/null +++ b/docs/plugin.example.sh @@ -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" + } +]' \ No newline at end of file