From 63d57f0cf2f3ca74ae39d29e52485330da7c62d0 Mon Sep 17 00:00:00 2001 From: Guillermo Calvino Date: Fri, 18 Nov 2022 13:43:26 +0100 Subject: [PATCH] Bug 2193 - Grafana Charm does not get the Prometheus password if it is changed Change-Id: I2d9a72c90a75f85ef10f5985223dda2995d7febd Signed-off-by: Guillermo Calvino --- installers/charm/grafana/src/charm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installers/charm/grafana/src/charm.py b/installers/charm/grafana/src/charm.py index 28d28ae3..dc4dfd90 100755 --- a/installers/charm/grafana/src/charm.py +++ b/installers/charm/grafana/src/charm.py @@ -245,7 +245,6 @@ class GrafanaCharm(CharmedOsmBase): "/etc/grafana/provisioning/datasources/", self._build_datasources_files(), ) - container_builder.add_envs( { "GF_SERVER_HTTP_PORT": config.port, @@ -258,6 +257,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, }, ) container = container_builder.build() -- 2.25.1