Grafana can't add datasouce Loki gateway

To add Datasource Loki, the Grafana will call http://loki-gateway/loki/api/v1/labels to loki-gateway. But nginx gateway hasn’t location /loki/api/v1/labels (https://github.com/grafana/loki/blob/helm-loki-3.3.1/production/helm/loki/values.yaml#L1131-L1185) → return 404 Not Found to Grafana.
image

image

I using Loki microservice.
Version Loki: 2.6.1 , version Grafana: 6.43.3
Do you have any ideas? Thanks for any tips.

But it does:

location ~ /loki/api/.* {
    proxy_pass       http://{{ include "loki.readFullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:3100$request_uri;
}