configure-dashboard.sh: 'PUT' -> 'POST'

Change-Id: I941d87fb4372e90b0cdf09fc67a3a40c9484d562
This commit is contained in:
aviau 2015-06-26 15:52:37 -04:00
parent f15a6ccf93
commit 7b9f0f97b1

View File

@ -28,7 +28,7 @@ done
shift $((OPTIND-1))
echo "=> Configuring InfluxDB datasources."
curl ${GRAFANA_URL}'/api/datasources' -X PUT -H 'Content-Type: application/json;charset=utf-8' --data '{"name":"influxdb","type":"influxdb","url":"http://'${INFLUXDB_HOST}':'${INFLUXDB_PORT}'","access":"proxy","isDefault":true,"database":"'${INFLUXDB_NAME}'","user":"'${INFLUXDB_USER}'","password":"'${INFLUXDB_PASS}'"}'
curl ${GRAFANA_URL}'/api/datasources' -X POST -H 'Content-Type: application/json;charset=utf-8' --data '{"name":"influxdb","type":"influxdb","url":"http://'${INFLUXDB_HOST}':'${INFLUXDB_PORT}'","access":"proxy","isDefault":true,"database":"'${INFLUXDB_NAME}'","user":"'${INFLUXDB_USER}'","password":"'${INFLUXDB_PASS}'"}'
echo -e "\n=> Configuring Grafana dashboard."
# Save dashboard