1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Grafana datasources — LOCAL ONLY.
#
# Production runs no Grafana; the ForkLaunch dashboard queries the backends
# directly. This file exists so a developer running the local stack gets
# working dashboards.
#
# Loki, Tempo and Mimir all run with multitenancy enabled here, matching
# production, so every datasource must send an X-Scope-OrgID header. Without it
# reads fail with "no org id". The local tenant is `local`, and it must match
# the value the OTel collector writes with in otel-collector-config.yaml.
#
# Mimir speaks the Prometheus query API, so `type: prometheus` is correct — it
# serves that API under the /prometheus prefix.
apiVersion: 1
datasources:
- name: Mimir
type: prometheus
uid: DS_MIMIR
access: proxy
url: http://mimir:9090/prometheus
jsonData:
httpMethod: POST
manageAlerts: true
prometheusType: Mimir
httpHeaderName1: X-Scope-OrgID
secureJsonData:
httpHeaderValue1: local
version: 1
editable: true
- name: Loki
type: loki
uid: DS_LOKI
access: proxy
url: http://loki:3100
jsonData:
maxLines: 1000
httpHeaderName1: X-Scope-OrgID
secureJsonData:
httpHeaderValue1: local
version: 1
editable: true
- name: Tempo
type: tempo
uid: DS_TEMPO
access: proxy
url: http://tempo:3200
jsonData:
httpMethod: GET
httpHeaderName1: X-Scope-OrgID
serviceMap:
datasourceUid: DS_MIMIR
secureJsonData:
httpHeaderValue1: local
version: 1
editable: true