Skip to content

Commit

Permalink
fix alertmanager http idle timeout in multizone
Browse files Browse the repository at this point in the history
  • Loading branch information
daanschipper committed Nov 7, 2024
1 parent f803fbb commit 5ac3c2e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ spec:
{{- if .Values.alertmanager.zoneAwareReplication.enabled }}
- "-alertmanager.sharding-ring.instance-availability-zone=zone-default"
{{- end }}
{{- end }}
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
{{- end }}
{{- range $key, $value := .Values.alertmanager.extraArgs }}
- "-{{ $key }}={{ $value }}"
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ spec:
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
- "-alertmanager.sharding-ring.instance-availability-zone=zone-a"
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
volumeMounts:
- name: config
mountPath: /etc/mimir
Expand Down Expand Up @@ -214,6 +218,10 @@ spec:
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
- "-alertmanager.sharding-ring.instance-availability-zone=zone-b"
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
volumeMounts:
- name: config
mountPath: /etc/mimir
Expand Down Expand Up @@ -341,6 +349,10 @@ spec:
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
- "-alertmanager.sharding-ring.instance-availability-zone=zone-c"
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
volumeMounts:
- name: config
mountPath: /etc/mimir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ spec:
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
- "-alertmanager.sharding-ring.instance-availability-zone=zone-a"
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
volumeMounts:
- name: config
mountPath: /etc/mimir
Expand Down Expand Up @@ -262,6 +266,10 @@ spec:
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
- "-alertmanager.sharding-ring.instance-availability-zone=zone-b"
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
volumeMounts:
- name: config
mountPath: /etc/mimir
Expand Down Expand Up @@ -414,6 +422,10 @@ spec:
- "-config.expand-env=true"
- "-config.file=/etc/mimir/mimir.yaml"
- "-alertmanager.sharding-ring.instance-availability-zone=zone-c"
# Prometheus HTTP client used to send alerts has a hard-coded idle
# timeout of 5 minutes, therefore the server timeout for Alertmanager
# needs to be higher to avoid connections being closed abruptly.
- "-server.http-idle-timeout=6m"
volumeMounts:
- name: config
mountPath: /etc/mimir
Expand Down

0 comments on commit 5ac3c2e

Please sign in to comment.