From 48942d18c37089b7ae24b59cf3ab923b9db6b061 Mon Sep 17 00:00:00 2001 From: AlexDHoffer Date: Mon, 7 Aug 2023 15:40:18 -0700 Subject: [PATCH] Allow optional entry to /ruler/rule_groups endpoint --- CHANGELOG.md | 1 + templates/nginx/nginx-config.yaml | 8 ++++++++ values.yaml | 2 ++ 3 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b0038bb..699109fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## master / unreleased +* [ENHANCEMENT] Allow optional entry to /ruler/rule_groups endpoint #475 * [ENHANCEMENT] Add option to autoscale on multiple metrics and custom metrics metrics #467 * [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.15.0 #453 * [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.15.1 #456 diff --git a/templates/nginx/nginx-config.yaml b/templates/nginx/nginx-config.yaml index 7db8b83a..7eaee449 100644 --- a/templates/nginx/nginx-config.yaml +++ b/templates/nginx/nginx-config.yaml @@ -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; } diff --git a/values.yaml b/values.yaml index 314bb8bf..fd6ebee2 100644 --- a/values.yaml +++ b/values.yaml @@ -722,6 +722,8 @@ ruler: enabled: true readOnlyRootFilesystem: true + list_all_rule_groups_api: false + querier: enabled: true replicas: 2