forked from mtusi2026/mtusi2026lab6
42 lines
951 B
YAML
42 lines
951 B
YAML
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Prometheus
|
|
uid: prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://prometheus:9090
|
|
isDefault: true
|
|
jsonData:
|
|
timeInterval: 3s
|
|
- name: Loki
|
|
uid: loki
|
|
type: loki
|
|
access: proxy
|
|
url: http://loki:3100
|
|
jsonData:
|
|
derivedFields:
|
|
- name: Trace
|
|
matcherType: label
|
|
matcherRegex: "^trace_id$"
|
|
datasourceUid: tempo
|
|
url: '$${__value.raw}'
|
|
urlDisplayLabel: "Открыть трассу"
|
|
- name: Tempo
|
|
uid: tempo
|
|
type: tempo
|
|
access: proxy
|
|
url: http://tempo:3200
|
|
jsonData:
|
|
tracesToLogsV2:
|
|
datasourceUid: loki
|
|
spanStartTimeShift: '-1m'
|
|
spanEndTimeShift: '1m'
|
|
tags:
|
|
- key: service.name
|
|
value: service_name
|
|
customQuery: true
|
|
query: '{$$__tags} | trace_id="$${__span.traceId}"'
|
|
nodeGraph:
|
|
enabled: true
|