configure-dashboard.sh: 'PUT' -> 'POST'
Change-Id: I941d87fb4372e90b0cdf09fc67a3a40c9484d562
This commit is contained in:
parent
f15a6ccf93
commit
7b9f0f97b1
@ -28,7 +28,7 @@ done
|
|||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
echo "=> Configuring InfluxDB datasources."
|
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."
|
echo -e "\n=> Configuring Grafana dashboard."
|
||||||
# Save dashboard
|
# Save dashboard
|
||||||
|
Loading…
Reference in New Issue
Block a user