From 7688da499d0536e60e920ac65472f2bcc2d4fed2 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 17 Nov 2022 17:44:23 +0100 Subject: [PATCH] Log generated prometheus config file in sidecar Change-Id: Iafefe1d4fc91521ecc0da067c0d54bb6d26baa31 Signed-off-by: garciadeblas --- docker/Prometheus/src/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Prometheus/src/app.py b/docker/Prometheus/src/app.py index ff291518..eb625557 100755 --- a/docker/Prometheus/src/app.py +++ b/docker/Prometheus/src/app.py @@ -127,6 +127,7 @@ async def main_task(client): print(f"Writing new config file to {prometheus_config_file}") config_file = open(prometheus_config_file, "w") config_file.truncate(0) + print(yaml.safe_dump(generated_prometheus_config)) config_file.write(yaml.safe_dump(generated_prometheus_config)) config_file.close() print("New config written, updating prometheus") -- 2.25.1