41 lines
846 B
YAML
41 lines
846 B
YAML
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Prometheus
|
|
uid: prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://prometheus:9090
|
|
isDefault: true
|
|
editable: false
|
|
jsonData:
|
|
timeInterval: 5s
|
|
|
|
- name: Loki
|
|
uid: loki
|
|
type: loki
|
|
access: proxy
|
|
url: http://loki:3100
|
|
editable: false
|
|
jsonData:
|
|
derivedFields:
|
|
- name: TraceID
|
|
matcherRegex: '"trace_id":"([a-f0-9]{32})"'
|
|
datasourceUid: tempo
|
|
url: '${__value.raw}'
|
|
|
|
- name: Tempo
|
|
uid: tempo
|
|
type: tempo
|
|
access: proxy
|
|
url: http://tempo:3200
|
|
editable: false
|
|
jsonData:
|
|
tracesToLogsV2:
|
|
datasourceUid: loki
|
|
spanStartTimeShift: -1m
|
|
spanEndTimeShift: 1m
|
|
tags:
|
|
- key: service.name
|
|
value: service_name
|
|
filterByTraceID: true
|