Files
mtusi2026lab7/grafana/provisioning/datasources/datasources.yaml
T
nodens1926 fd932c6de4
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР7
2026-11-24 19:50:03 +03:00

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