diff --git a/services.yml.loki b/services.yml.loki
index 65ffd08a8a18bf56bfe8c9a536297acf3a23a0b0..86e5ce59c00a5270dd9bcfccdf323c8b357d64d8 100644
--- a/services.yml.loki
+++ b/services.yml.loki
@@ -128,18 +128,18 @@ prometheus:
     - name: loki
       port: 3100
       scheme: http
+    - name: grafana
+      port: 2929
+      scheme: https
+      enable_sso_proxy: true
       extra_nginx_config: |
-        location ^~ /api/datasources/proxy/\d+/loki/api/v1/tail {
+        location ^~ /api/datasources/proxy/2/loki/api/v1/tail {
             proxy_pass http://be_loki_3100_prometheus;
             proxy_http_version 1.1;
             proxy_set_header  Upgrade $http_upgrade;
             proxy_set_header  Connection "upgrade";
             proxy_set_header Host $host;
-        }
-    - name: grafana
-      port: 2929
-      scheme: https
-      enable_sso_proxy: true
+        }        
     - name: thanos
       port: 10904
       scheme: http