28 lines
750 B
YAML
28 lines
750 B
YAML
apiVersion: 1
|
||
|
||
datasources:
|
||
- name: Prometheus
|
||
uid: PBFA97CFB590B2093 # <-- UID здесь
|
||
type: prometheus
|
||
access: proxy
|
||
url: http://prometheus:9090 # <-- А URL здесь
|
||
isDefault: true
|
||
- name: Tempo
|
||
type: tempo
|
||
access: proxy
|
||
url: http://tempo:3200
|
||
jsonData:
|
||
tracesToLogsV2:
|
||
datasourceUid: loki
|
||
tags: [{key: 'service.name', value: 'service_name'}]
|
||
- name: Loki
|
||
uid: loki # <-- Добавьте UID, чтобы ссылка из Tempo работала
|
||
type: loki
|
||
access: proxy
|
||
url: http://loki:3100
|
||
jsonData:
|
||
derivedFields:
|
||
- name: TraceID
|
||
matcherRegex: 'trace_id=(\w+)'
|
||
url: '$${__value.raw}'
|
||
datasourceUid: tempo |