From: garciadeblas Date: Thu, 17 Nov 2022 16:44:23 +0000 (+0100) Subject: Log generated prometheus config file in sidecar X-Git-Tag: release-v13.0-start~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F12700%2F1;p=osm%2Fdevops.git Log generated prometheus config file in sidecar Change-Id: Iafefe1d4fc91521ecc0da067c0d54bb6d26baa31 Signed-off-by: garciadeblas --- 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")