add influxdb reporter

This commit is contained in:
Patrick Stadler
2015-03-14 13:32:26 +01:00
parent a6af168235
commit ffea7022ea
6 changed files with 35 additions and 16 deletions

View File

@@ -22,8 +22,8 @@ init() {
}
report () {
METRIC=$1
VALUE=$2
local METRIC=$1
local VALUE=$2
curl -s $__keen_io_api_url -H "Content-Type: application/json" \
-d "{\"metric\": \"$METRIC\", \"value\": $VALUE}" > /dev/null
}