Skip to content

Commit 60d8521

Browse files
RyanW8Ryan Woodsnschad
authored
Added /api/prom/rules and /api/prom/api/v1/alerts endpoints to Nginx … (grafana#291)
* Added /api/prom/rules and /api/prom/api/v1/alerts endpoints to Nginx configuration Signed-off-by: Ryan Woods <[email protected]> * fix /api/prom/api/v1/alerts endpoint Signed-off-by: ShuzZzle <[email protected]> Co-authored-by: Ryan Woods <[email protected]> Co-authored-by: ShuzZzle <[email protected]>
1 parent 73ab235 commit 60d8521

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* config.querier.query_ingesters_within: 13h -> 0s (default)
88
* config.querier.query_store_after: 12h -> 0s (default)
99
* [ENHANCEMENT] Fix the indentation of memcached guide #309
10+
* [ENHANCEMENT] Added api endpoints for Grafana 8 unified alerting #291
1011

1112
## 1.2.0 / 2021-12-29
1213

templates/nginx/nginx-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ data:
9898
proxy_pass http://{{ template "cortex.fullname" . }}-alertmanager.{{ $rootDomain }}$request_uri;
9999
}
100100
101+
location = /api/prom/api/v1/alerts {
102+
proxy_pass http://{{ template "cortex.fullname" . }}-alertmanager.{{ $rootDomain }}/api/v1/alerts;
103+
}
104+
101105
# Ruler Config
102106
location ~ /api/v1/rules {
103107
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
@@ -107,6 +111,10 @@ data:
107111
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
108112
}
109113
114+
location ~ /api/prom/rules {
115+
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
116+
}
117+
110118
# Config Config
111119
location ~ /api/prom/configs/.* {
112120
proxy_pass http://{{ template "cortex.fullname" . }}-configs.{{ $rootDomain }}$request_uri;

0 commit comments

Comments
 (0)