Change Grafana datasource name to "CCP InfluxDB"

Change-Id: I3049d4d67a854adfd393955eaea526938fdbafaa
This commit is contained in:
Éric Lemoine 2016-08-24 13:24:35 +02:00
parent 77426cbfe5
commit f816463113
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ echo -e "Grafana is up and running.\n"
echo "Creating InfluxDB datasource..."
curl -i -XPOST -H "Accept: application/json" -H "Content-Type: application/json" "http://{{ grafana_user }}:{{ grafana_password }}@{{ grafana_host }}:{{ grafana_port }}/api/datasources" -d '
{
"name": "MCP InfluxDB",
"name": "CCP InfluxDB",
"type": "influxdb",
"access": "proxy",
"isDefault": true,

View File

@ -68,7 +68,7 @@ for f in glob.glob(path):
for k, v in dashboard.items():
if k == 'annotations':
for anno in v.get('list', []):
anno['datasource'] = 'MCP InfluxDB'
anno['datasource'] = 'CCP InfluxDB'
if k == 'templating':
variables = v.get('list', [])
for o in variables: