From: sousaedu Date: Tue, 26 Jan 2021 15:30:25 +0000 (+0100) Subject: Fix ConfigMap for Prometheus Charm X-Git-Tag: branch-sol006v331-start~65 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6d3811383dbe9a8c36056ea2f2aa1e2b1090855e;p=osm%2Fdevops.git Fix ConfigMap for Prometheus Charm Change-Id: I340d65d50daa3dd40baf2123b7655bba9ed66fd5 Signed-off-by: sousaedu --- diff --git a/installers/charm/prometheus/src/pod_spec.py b/installers/charm/prometheus/src/pod_spec.py index 3e4bc443..541cf3e9 100644 --- a/installers/charm/prometheus/src/pod_spec.py +++ b/installers/charm/prometheus/src/pod_spec.py @@ -238,18 +238,18 @@ def _make_pod_files(config: Dict[str, Any]) -> List[Dict[str, Any]]: { "path": "prometheus.yml", "content": ( - "global:" - " scrape_interval: 15s" - " evaluation_interval: 15s" - "alerting:" - " alertmanagers:" - " - static_configs:" - " - targets:" - "rule_files:" - "scrape_configs:" - " - job_name: 'prometheus'" - " static_configs:" - " - targets: [{}]".format(config["default_target"]) + "global:\n" + " scrape_interval: 15s\n" + " evaluation_interval: 15s\n" + "alerting:\n" + " alertmanagers:\n" + " - static_configs:\n" + " - targets:\n" + "rule_files:\n" + "scrape_configs:\n" + " - job_name: 'prometheus'\n" + " static_configs:\n" + " - targets: [{}]\n".format(config["default_target"]) ), } ],