@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user