ЛР6: наблюдаемость, сквозные traces и исследование sampling

This commit is contained in:
2026-11-20 11:58:34 +03:00
parent 470d9d6f1e
commit 3b0f4ab281
80 changed files with 22966 additions and 50 deletions
@@ -0,0 +1,32 @@
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:
derivedFields:
- name: TraceID
datasourceUid: tempo
matcherRegex: '"trace_id":"([a-f0-9]{32})"'
url: '$${__value.raw}'
- name: Tempo
uid: tempo
type: tempo
access: proxy
url: http://tempo:3200
jsonData:
tracesToLogsV2:
datasourceUid: loki
spanStartTimeShift: '-1m'
spanEndTimeShift: '1m'
filterByTraceID: false
customQuery: true
query: '{service_name=~"messenger-.*"} | json | trace_id="$${__trace.traceId}"'