Log generated prometheus config file in sidecar 00/12700/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 17 Nov 2022 16:44:23 +0000 (17:44 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 17 Nov 2022 16:45:02 +0000 (17:45 +0100)
Change-Id: Iafefe1d4fc91521ecc0da067c0d54bb6d26baa31
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
docker/Prometheus/src/app.py

index ff29151..eb62555 100755 (executable)
@@ -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")