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

28 lines
750 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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