Skip to content

Commit

Permalink
Fix nginx config when ruler is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Romain BELORGEY <romain.belorgey@gmail.com>
  • Loading branch information
RomainBelorgey committed Dec 11, 2023
1 parent 565bfd7 commit c692d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/loki-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: loki-distributed
description: Helm chart for Grafana Loki in microservices mode
type: application
appVersion: 2.9.2
version: 0.77.0
version: 0.78.0
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 2 additions & 0 deletions charts/loki-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,7 @@ gateway:
}
# Ruler
{{- if .Values.ruler.enabled }}
location ~ /prometheus/api/v1/alerts.* {
proxy_pass http://{{ include "loki.rulerFullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:3100$request_uri;
}
Expand All @@ -1290,6 +1291,7 @@ gateway:
location ~ /api/prom/alerts.* {
proxy_pass http://{{ include "loki.rulerFullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:3100$request_uri;
}
{{- end }}
location ~ /api/prom/.* {
set $api_prom_backend http://{{ include "loki.queryFrontendFullname" . }}-headless.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }};
Expand Down

0 comments on commit c692d2b

Please sign in to comment.