Skip to content
Snippets Groups Projects
Commit 6d381138 authored by sousaedu's avatar sousaedu
Browse files

Fix ConfigMap for Prometheus Charm


Change-Id: I340d65d50daa3dd40baf2123b7655bba9ed66fd5
Signed-off-by: default avatarsousaedu <eduardo.sousa@canonical.com>
parent 2459af69
No related branches found
No related tags found
No related merge requests found
......@@ -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"])
),
}
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment