Skip to content

Commit

Permalink
fix: support alertmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeVienne committed Oct 23, 2024
1 parent 126e662 commit d01a300
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/mimir/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 5.5.0
version: 5.5.1
appVersion: r305
description: "Grafana Mimir"
home: https://grafana.com/docs/helm-charts/mimir-distributed/latest/
Expand Down
21 changes: 10 additions & 11 deletions charts/mimir/monolithic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ monolithic:
size: "8Gi"
storageClass: gp3-3000-125
priorityClassName: "optional-rescheduling-priority-multi-az"
# The zone aware replication doesn't yet make a lot of difference, since it is not used at query side yet. This is
# however planned in an upcoming release, and therefore it's best to have this configuration already enabled.
# The zone aware replication doesn't yet make a lot of difference, since it is not used at query side yet. This is
# however planned in an upcoming release, and therefore it's best to have this configuration already enabled.
zoneAwareReplication:
enabled: true
topologyKey: "topology.kubernetes.io/zone" # This generates default anti-affinity rules
zones: # Zone list has to be fully redefined for modification. Update with you actual zones or skip to use logical zones only.
topologyKey: "topology.kubernetes.io/zone" # This generates default anti-affinity rules
zones: # Zone list has to be fully redefined for modification. Update with you actual zones or skip to use logical zones only.
- name: zone-a
nodeSelector:
topology.kubernetes.io/zone: eu-west-1a
Expand All @@ -63,10 +63,10 @@ nginx:
ingress:
enabled: true
hosts:
- host: "mimir.multi-az.test.ngdata.com"
paths:
- path: /
pathType: Prefix
- host: "mimir.multi-az.test.ngdata.com"
paths:
- path: /
pathType: Prefix
tls:
# empty, disabled.

Expand All @@ -75,7 +75,6 @@ minio:
enabled: false
replicas: 0

# The Alert manager is currently not used. When enabling, it has to be configured for zone aware replication similar to
# monolithic setup.
# The Alert manager is included in the monolithic deployment
alertmanager:
enabled: false
enabled: false
11 changes: 10 additions & 1 deletion charts/mimir/templates/monolithic/monolithic-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ spec:
{{- end }}
- name: active-queries
emptyDir: {}
{{- if .Values.alertmanager.fallbackConfig }}
- name: alertmanager-fallback-config
configMap:
name: {{ include "mimir.resourceName" (dict "ctx" . "component" "alertmanager") }}-fallback-config
{{- end }}
containers:
{{- if .Values.monolithic.extraContainers }}
{{ toYaml .Values.monolithic.extraContainers | nindent 8 }}
Expand All @@ -114,7 +119,7 @@ spec:
image: "{{ include "mimir.imageReference" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- "-target=all"
- "-target=all,alertmanager"
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
{{- if $zoneName }}
Expand Down Expand Up @@ -162,6 +167,10 @@ spec:
{{- end }}
- name: active-queries
mountPath: /active-query-tracker
{{- if .Values.alertmanager.fallbackConfig }}
- name: alertmanager-fallback-config
mountPath: /configs/
{{- end }}
ports:
- name: http-metrics
containerPort: {{ include "mimir.serverHttpListenPort" . }}
Expand Down

0 comments on commit d01a300

Please sign in to comment.