diff --git a/CHANGELOG.md b/CHANGELOG.md index 010e7ca3..ee521cb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## master / unreleased +* [FEATURE] Add remote-write OTLP endpoint in nginx * [DEPENDENCY] update kiwigrid/k8s-sidecar docker tag to v2.11.2 #663 ## 3.3.8 / 2026-08-17 diff --git a/templates/nginx/nginx-config.yaml b/templates/nginx/nginx-config.yaml index 98fb2966..3705e2d4 100644 --- a/templates/nginx/nginx-config.yaml +++ b/templates/nginx/nginx-config.yaml @@ -97,6 +97,11 @@ data: location = /api/v1/push { proxy_pass {{ $push_endpoint }}$request_uri; } + + ## OTLP metrics API + location = /api/v1/otlp/v1/metrics { + proxy_pass {{ $push_endpoint }}$request_uri; + } {{- end }} {{- if .Values.alertmanager.enabled }} @@ -162,6 +167,11 @@ data: proxy_set_header X-Scope-OrgID {{ $org }}; proxy_pass {{ $.Values.nginx.config.upstream_protocol }}://{{ template "cortex.fullname" $ }}-distributor.{{ $rootDomain }}/api/v1/push; } + + location = /api/v1/otlp/v1/metrics/{{ $org }} { + proxy_set_header X-Scope-OrgID {{ $org }}; + proxy_pass {{ $.Values.nginx.config.upstream_protocol }}://{{ template "cortex.fullname" $ }}-distributor.{{ $rootDomain }}/api/v1/otlp/v1/metrics; + } {{- end }} {{- end }} }