Skip to content

Commit 5e4eb67

Browse files
amirulalikd7lxl
andauthored
Bug/ruler use wrong alertmanager url (#594)
* Fix alertmanager URL template in ruler-dep.yaml Use the same method as alertmanager-headless-service to generate hostname Signed-off-by: Amirul Ali <amirul@rixv.net> * Add bugfix entry for Alertmanager URL issue Signed-off-by: Amirul Ali <amirul@rixv.net> --------- Signed-off-by: Amirul Ali <amirul@rixv.net> Co-authored-by: Tom Hayward <thayward@infoblox.com>
1 parent 0ea01df commit 5e4eb67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [ENHANCEMENT] Avoid scheduling queriers and ingesters on the same node #583
77
* [ENHANCEMENT] Allow for the nginx service port and container port to be different #589
88
* [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.20.1 #577
9+
* [BUGFIX] Ruler is using the wrongly generated Alertmanager URL #593
910

1011
## 3.0.0 / 2025-11-27
1112

templates/ruler/ruler-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
- "-config.file=/etc/cortex/cortex.yaml"
108108
{{- if not .Values.config.ruler.alertmanager_url }}
109109
{{- if .Values.config.ruler.enable_alertmanager_discovery }}
110-
- "-ruler.alertmanager-url=http://_http-metrics._tcp.{{ template "cortex.name" . }}-alertmanager-headless.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/api/prom/alertmanager/"
110+
- "-ruler.alertmanager-url=http://_http-metrics._tcp.{{ template "cortex.alertmanagerFullname" . }}-headless.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/api/prom/alertmanager/"
111111
{{- else }}
112112
- "-ruler.alertmanager-url=http://{{ template "cortex.alertmanagerFullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.config.server.http_listen_port }}/api/prom/alertmanager/"
113113
{{- end }}

0 commit comments

Comments
 (0)