From 7b9f0f97b165244bf4a46ede5eaee68167c736f3 Mon Sep 17 00:00:00 2001 From: aviau Date: Fri, 26 Jun 2015 15:52:37 -0400 Subject: [PATCH] configure-dashboard.sh: 'PUT' -> 'POST' Change-Id: I941d87fb4372e90b0cdf09fc67a3a40c9484d562 --- container/configure-dashboard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/configure-dashboard.sh b/container/configure-dashboard.sh index fbfec3f..c225e6c 100755 --- a/container/configure-dashboard.sh +++ b/container/configure-dashboard.sh @@ -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