Skip to content

Commit 8745b57

Browse files
ts-mininschad
andauthored
Cortex 1.9 Adjustments (#154)
* Adjusting values for cortexproject/cortex#4101 Signed-off-by: Tyler Horvath <[email protected]> * fixing per: cortexproject/cortex#4101 Signed-off-by: Tyler Horvath <[email protected]> * this goes in limits Signed-off-by: Tyler Horvath <[email protected]> * Adjusting alert manager statefulset config for 1.9 Signed-off-by: Tyler Horvath <[email protected]> * Adding changelog Signed-off-by: Tyler Horvath <[email protected]> * I passed an english class once upon a time Signed-off-by: Tyler Horvath <[email protected]> Co-authored-by: Niclas Schad <[email protected]>
1 parent c2bc1ed commit 8745b57

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [ENHANCEMENT] Adding option to add custom headers (ex. X-Scope-OrgID) to NGINX from values.yaml (key `nginx.config.setHeaders`). #127
77
* [ENHANCEMENT] Headless service for distributor to allow GRPC load balancing #148
88
* [BUGFIX] Fixed `priorityClassName` in alertmanager deployment configuration. #155
9+
* [BUGFIX] Replacing deprecated (in Cortex 1.9) configuration with appropriate replacements (max_look_back_period -> max_query_lookback & compress_responses -> response_compression_enabled). #154
910

1011
## 0.4.1 / 2021-03-22
1112

templates/alertmanager-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ spec:
112112
- "-alertmanager.configs.url=http://{{ template "cortex.fullname" . }}-configs.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.config.server.http_listen_port }}"
113113
{{- if gt (.Values.alertmanager.replicas | int) 1 }}
114114
{{- range $n := until (.Values.alertmanager.replicas |int ) }}
115-
- -cluster.peer={{ template "cortex.fullname" $ }}-alertmanager-{{ $n }}.{{ template "cortex.fullname" $ }}-alertmanager-headless.{{ $.Release.Namespace }}.svc.{{ $.Values.clusterDomain }}:{{ $clusterPort }}
115+
- -alertmanager.cluster.peers={{ template "cortex.fullname" $ }}-alertmanager-{{ $n }}.{{ template "cortex.fullname" $ }}-alertmanager-headless.{{ $.Release.Namespace }}.svc.{{ $.Values.clusterDomain }}:{{ $clusterPort }}
116116
{{- end }}
117117
{{- end }}
118118
{{- range $key, $value := .Values.alertmanager.extraArgs }}

values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ config:
4646
auth_enabled: false
4747
api:
4848
prometheus_http_prefix: '/prometheus'
49+
response_compression_enabled: true
4950
ingester:
5051
max_transfer_retries: 0
5152
lifecycler:
@@ -65,6 +66,7 @@ config:
6566
enforce_metric_name: false
6667
reject_old_samples: true
6768
reject_old_samples_max_age: 168h
69+
max_query_lookback: 0s
6870
schema:
6971
configs:
7072
- from: 2020-11-01
@@ -126,7 +128,6 @@ config:
126128
memcached_client:
127129
timeout: 1s
128130
chunk_store:
129-
max_look_back_period: 0s
130131
chunk_cache_config:
131132
memcached:
132133
expiration: 1h
@@ -164,7 +165,6 @@ config:
164165
frontend:
165166
# max_outstanding_per_tenant: 1000
166167
log_queries_longer_than: 10s
167-
compress_responses: true
168168

169169
rbac:
170170
create: true

0 commit comments

Comments
 (0)