Add grafana config options to MON charm 70/9970/3
authorDavid Garcia <david.garcia@canonical.com>
Thu, 12 Nov 2020 14:30:56 +0000 (15:30 +0100)
committergarciadav <david.garcia@canonical.com>
Fri, 13 Nov 2020 14:12:13 +0000 (15:12 +0100)
Added options:
- grafana_url
- grafana_user
- grafana_password

Change-Id: Ifa152297aaac876c86f36a1a5dace01491538145
Signed-off-by: David Garcia <david.garcia@canonical.com>
installers/charm/mon-k8s/config.yaml
installers/charm/mon-k8s/reactive/spec_template.yaml

index 069758f..6f44b2e 100644 (file)
@@ -76,3 +76,15 @@ options:
     description: Docker repository password
     type: string
     default: ""
+  grafana_url:
+    description: Grafana URL
+    type: string
+    default: http://grafana-k8s:3000
+  grafana_user:
+    description: Grafana user
+    type: string
+    default: admin
+  grafana_password:
+    description: Grafana password
+    type: string
+    default: admin
index bc6cb07..90c881d 100644 (file)
@@ -41,6 +41,9 @@ containers:
       OSMMON_COLLECTOR_INTERVAL: %(OSMMON_COLLECTOR_INTERVAL)s
       OSMMON_EVALUATOR_INTERVAL: %(OSMMON_EVALUATOR_INTERVAL)s
       OSMMON_PROMETHEUS_URL: http://%(prometheus_url)s
+      OSMMON_GRAFANA_URL: %(grafana_url)s
+      OSMMON_GRAFANA_USER: %(grafana_user)s
+      OSMMON_GRAFANA_PASSWORD: %(grafana_password)s
     kubernetes:
       readinessProbe:
         tcpSocket: