Skip to content

Commit cafc4bf

Browse files
committed
fix(grafana): Use proper service for loki
The loki-read and loki-read-headless services are for internal loki processing while the loki-gateway service is for use by external services like Grafana. This service provides better load balancing and caching management.
1 parent 067a5e6 commit cafc4bf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

platform/kube-prometheus/base/grafana-dashboardDatasources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ stringData:
3737
"name": "loki",
3838
"orgId": 1,
3939
"type": "loki",
40-
"url": "http://loki-read.loki.svc:3100",
40+
"url": "http://loki-gateway.loki.svc:80",
4141
"version": 1
4242
}
4343
]

platform/kube-prometheus/base/grafana-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
annotations:
2121
checksum/grafana-config: d97a8b005f73b8edda242ba217f30f34
2222
checksum/grafana-dashboardproviders: 40d6c3ef390b61afadf89d3ec567fbb1
23-
checksum/grafana-datasources: 841d7ef91de5b82cb05b2422f0f28fc0
23+
checksum/grafana-datasources: bc4bdde79038a4e903b64d051ac613fd
2424
labels:
2525
app.kubernetes.io/component: grafana
2626
app.kubernetes.io/name: grafana

platform/kube-prometheus/settings.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ local kp =
8686
type: 'loki',
8787
access: 'proxy',
8888
orgId: 1,
89-
url: 'http://loki-read.loki.svc:3100',
89+
url: 'http://loki-gateway.loki.svc:80',
9090
version: 1,
9191
editable: false,
9292
},

0 commit comments

Comments
 (0)