Apply completed lab 6 implementation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
HellsTomato
2026-10-31 01:46:08 +03:00
co-authored by Copilot
parent 470d9d6f1e
commit f2b4d77be4
50 changed files with 7983 additions and 15 deletions
@@ -0,0 +1,33 @@
# Grafana ничего не хранит сама: три источника, связанные между собой по trace_id.
apiVersion: 1
datasources:
- name: Prometheus
uid: prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
- name: Loki
uid: loki
type: loki
access: proxy
url: http://loki:3100
jsonData:
# trace_id из structured metadata записи лога → переход в трассу Tempo.
derivedFields:
- name: trace_id
matcherType: label
matcherRegex: trace_id
datasourceUid: tempo
url: '$${__value.raw}'
- name: Tempo
uid: tempo
type: tempo
access: proxy
url: http://tempo:3200
jsonData:
tracesToLogsV2:
datasourceUid: loki
filterByTraceID: true
spanStartTimeShift: -5m
spanEndTimeShift: 5m