From: Guillermo Calvino Date: Mon, 12 Dec 2022 16:17:49 +0000 (+0100) Subject: Fix Bug 2204 - Grafana Charm is failing to be deployed in Charmed OSM Master X-Git-Tag: v13.0.2~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F13250%2F2;p=osm%2Fdevops.git Fix Bug 2204 - Grafana Charm is failing to be deployed in Charmed OSM Master Change-Id: Ia79845f41b642d223d8b501a87a61bdb99db9ab3 Signed-off-by: Guillermo Calvino (cherry picked from commit ee303f97b9afe276076f56220d73c6382aa65c48) --- diff --git a/installers/charm/grafana/src/charm.py b/installers/charm/grafana/src/charm.py index dc4dfd90..caa02779 100755 --- a/installers/charm/grafana/src/charm.py +++ b/installers/charm/grafana/src/charm.py @@ -209,6 +209,8 @@ class GrafanaCharm(CharmedOsmBase): { "admin-password": admin_initial_password, "mysql-url": mysql_config.mysql_uri or self.mysql_client.get_uri(), + "prometheus-user": self.prometheus_client.user, + "prometheus-password": self.prometheus_client.password, }, ) @@ -257,8 +259,8 @@ class GrafanaCharm(CharmedOsmBase): envs={ "GF_SECURITY_ADMIN_PASSWORD": "admin-password", "GF_DATABASE_URL": "mysql-url", - "PROMETHEUS_USER": self.prometheus_client.user, - "PROMETHEUS_PASSWORD": self.prometheus_client.password, + "PROMETHEUS_USER": "prometheus-user", + "PROMETHEUS_PASSWORD": "prometheus-password", }, ) container = container_builder.build()