Skip to content

Commit

Permalink
Allow optional entry to /ruler/rule_groups endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDCraig committed Aug 7, 2023
1 parent d335fe6 commit 1249853
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/nginx/nginx-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ data:
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
}
{{- if .Values.ruler.list_all_rule_groups_api }}
location ~ /ruler/rule_groups {
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
}
{{- end }}
location ~ /api/prom/rules {
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ ruler:
enabled: true
readOnlyRootFilesystem: true

list_all_rule_groups_api: false

querier:
enabled: true
replicas: 2
Expand Down

0 comments on commit 1249853

Please sign in to comment.