Skip to content
Snippets Groups Projects
Unverified Commit 4b5b9434 authored by Joseph Daniel's avatar Joseph Daniel Committed by GitHub
Browse files

Fix alertmanager external config example (#1891)


Co-authored-by: default avatarJoseph Daniel <joseph@apxor.com>
parent 7e6fe71d
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,9 @@ local kp = ...@@ -15,6 +15,9 @@ local kp =
common+: { common+: {
namespace: 'monitoring', namespace: 'monitoring',
}, },
alertmanager+: {
config: importstr 'alertmanager-config.yaml',
},
}, },
alertmanager+:: { alertmanager+:: {
alertmanager+: { alertmanager+: {
...@@ -26,9 +29,9 @@ local kp = ...@@ -26,9 +29,9 @@ local kp =
}, },
configmap+:: { configmap+:: {
'alert-templates': configmap( 'alert-templates': configmap(
'alertmanager-alert-template.tmpl', 'alert-templates',
$.values.common.namespace, // could be $._config.namespace to assign namespace once $.values.common.namespace, // could be $._config.namespace to assign namespace once
{ data: importstr 'alertmanager-alert-template.tmpl' }, { 'alertmanager-alert-template.tmpl': importstr 'alertmanager-alert-template.tmpl' },
), ),
}, },
}; };
......
...@@ -24,4 +24,4 @@ slack_configs: ...@@ -24,4 +24,4 @@ slack_configs:
text: '{{ template "slack.text" . }} text: '{{ template "slack.text" . }}
templates: templates:
- '/etc/alertmanager/configmaps/alertmanager-alert-template.tmpl' - '/etc/alertmanager/configmaps/alert-templates/*.tmpl'
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