From f81646311342efe964727cb0016c9791cadaab31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 24 Aug 2016 13:24:35 +0200 Subject: [PATCH] Change Grafana datasource name to "CCP InfluxDB" Change-Id: I3049d4d67a854adfd393955eaea526938fdbafaa --- service/files/grafana-configure.sh.j2 | 2 +- tools/format-dashboards.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/files/grafana-configure.sh.j2 b/service/files/grafana-configure.sh.j2 index a956604..a9beafb 100755 --- a/service/files/grafana-configure.sh.j2 +++ b/service/files/grafana-configure.sh.j2 @@ -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, diff --git a/tools/format-dashboards.py b/tools/format-dashboards.py index 05ef187..e159967 100644 --- a/tools/format-dashboards.py +++ b/tools/format-dashboards.py @@ -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: