forked from grafana/mimir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm: add alertmanager fallback config (grafana#3360)
Adds the possibility to define a fallback config for alertmanager from the helm chart config Signed-off-by: Dimitar Dimitrov <[email protected]> Co-authored-by: duncan485 <[email protected]>
- Loading branch information
1 parent
76ad50b
commit 2a8da5d
Showing
50 changed files
with
501 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
operations/helm/charts/mimir-distributed/templates/alertmanager/alertmanager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if .Values.alertmanager.enabled -}} | ||
{{- if .Values.alertmanager.fallbackConfig -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "mimir.resourceName" (dict "ctx" . "component" "alertmanager") }}-fallback-config | ||
labels: | ||
{{- include "mimir.labels" (dict "ctx" . "component" "alertmanager" "memberlist" true) | nindent 4 }} | ||
annotations: | ||
{{- toYaml .Values.alertmanager.annotations | nindent 4 }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
data: | ||
alertmanager_fallback_config.yaml: | | ||
{{- .Values.alertmanager.fallbackConfig | nindent 4 }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...rprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: mimir-distributed/templates/alertmanager/alertmanager-config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: gateway-enterprise-values-mimir-alertmanager-fallback-config | ||
labels: | ||
app.kubernetes.io/name: mimir | ||
app.kubernetes.io/instance: gateway-enterprise-values | ||
app.kubernetes.io/component: alertmanager | ||
app.kubernetes.io/part-of: memberlist | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
{} | ||
namespace: "citestns" | ||
data: | ||
alertmanager_fallback_config.yaml: | | ||
receivers: | ||
- name: default-receiver | ||
route: | ||
receiver: default-receiver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...-nginx-values-generated/mimir-distributed/templates/alertmanager/alertmanager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: mimir-distributed/templates/alertmanager/alertmanager-config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: gateway-nginx-values-mimir-alertmanager-fallback-config | ||
labels: | ||
app.kubernetes.io/name: mimir | ||
app.kubernetes.io/instance: gateway-nginx-values | ||
app.kubernetes.io/component: alertmanager | ||
app.kubernetes.io/part-of: memberlist | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
{} | ||
namespace: "citestns" | ||
data: | ||
alertmanager_fallback_config.yaml: | | ||
receivers: | ||
- name: default-receiver | ||
route: | ||
receiver: default-receiver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...nabled-values-generated/mimir-distributed/templates/alertmanager/alertmanager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: mimir-distributed/templates/alertmanager/alertmanager-config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: graphite-enabled-values-mimir-alertmanager-fallback-config | ||
labels: | ||
app.kubernetes.io/name: mimir | ||
app.kubernetes.io/instance: graphite-enabled-values | ||
app.kubernetes.io/component: alertmanager | ||
app.kubernetes.io/part-of: memberlist | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
{} | ||
namespace: "citestns" | ||
data: | ||
alertmanager_fallback_config.yaml: | | ||
receivers: | ||
- name: default-receiver | ||
route: | ||
receiver: default-receiver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
.../large-values-generated/mimir-distributed/templates/alertmanager/alertmanager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: mimir-distributed/templates/alertmanager/alertmanager-config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: large-values-mimir-alertmanager-fallback-config | ||
labels: | ||
app.kubernetes.io/name: mimir | ||
app.kubernetes.io/instance: large-values | ||
app.kubernetes.io/component: alertmanager | ||
app.kubernetes.io/part-of: memberlist | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
{} | ||
namespace: "citestns" | ||
data: | ||
alertmanager_fallback_config.yaml: | | ||
receivers: | ||
- name: default-receiver | ||
route: | ||
receiver: default-receiver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...toring-values-generated/mimir-distributed/templates/alertmanager/alertmanager-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# Source: mimir-distributed/templates/alertmanager/alertmanager-config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: metamonitoring-values-mimir-alertmanager-fallback-config | ||
labels: | ||
app.kubernetes.io/name: mimir | ||
app.kubernetes.io/instance: metamonitoring-values | ||
app.kubernetes.io/component: alertmanager | ||
app.kubernetes.io/part-of: memberlist | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
{} | ||
namespace: "citestns" | ||
data: | ||
alertmanager_fallback_config.yaml: | | ||
receivers: | ||
- name: default-receiver | ||
route: | ||
receiver: default-receiver |
Oops, something went wrong.