Files
mtusi2026lab6/infra/grafana/provisioning/datasources/datasources.yaml
T

44 lines
926 B
YAML

apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
jsonData:
httpMethod: POST
timeInterval: 5s
- name: Tempo
type: tempo
access: proxy
url: http://tempo:3200
jsonData:
httpMethod: GET
tracesToLogsV2:
datasourceUid: 'loki'
tags: ['job', 'instance', 'service.name']
filterByTraceID: true
filterBySpanID: true
serviceMap:
datasourceUid: 'prometheus'
nodeGraph:
enabled: true
search:
hide: false
lokiSearch:
datasourceUid: 'loki'
- name: Loki
type: loki
access: proxy
url: http://loki:3100
jsonData:
maxLines: 1000
derivedFields:
- datasourceUid: tempo
matcherRegex: '"trace_id":\s*"([0-9a-f]{32})"'
name: TraceID
url: '$${__value.raw}'