chronograf/canned/new_apps.sh

24 lines
396 B
Bash
Raw Normal View History

2016-10-11 00:34:05 +00:00
#!/bin/sh
UUID=$(uuidgen)
UUID="$(tr [A-Z] [a-z] <<< "$UUID")"
APP_FILE=$UUID.json
cat > $APP_FILE << EOF
{
"id": "$UUID",
"telegraf_measurement": "MY_MEASUREMENT",
"app": "User Facing Application Name",
"cells": [{
"x": 0,
"y": 0,
"w": 10,
"h": 10,
"queries": [{
"query": "select used_percent from disk",
"db": "telegraf",
"rp": "autogen"
}]
}]
}
EOF