This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: https://prometheus-tls:8443
|
||||
isDefault: true
|
||||
jsonData:
|
||||
timeInterval: 5s
|
||||
tlsAuth: true
|
||||
tlsAuthWithCACert: true
|
||||
secureJsonData:
|
||||
tlsCACert: $__file{/certs/ca.crt}
|
||||
tlsClientCert: $__file{/certs/grafana-client.crt}
|
||||
tlsClientKey: $__file{/certs/grafana-client.key}
|
||||
|
||||
- name: Loki
|
||||
uid: loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: https://loki-tls:8443
|
||||
jsonData:
|
||||
maxLines: 1000
|
||||
tlsAuth: true
|
||||
tlsAuthWithCACert: true
|
||||
# JSON-строка лога содержит trace_id; derived field делает её ссылкой
|
||||
# в Tempo прямо из Explore/Dashboard.
|
||||
derivedFields:
|
||||
- name: trace_id
|
||||
matcherRegex: '"trace_id":"([a-f0-9]{32})"'
|
||||
url: "$${__value.raw}"
|
||||
datasourceUid: tempo
|
||||
secureJsonData:
|
||||
tlsCACert: $__file{/certs/ca.crt}
|
||||
tlsClientCert: $__file{/certs/grafana-client.crt}
|
||||
tlsClientKey: $__file{/certs/grafana-client.key}
|
||||
|
||||
- name: Tempo
|
||||
uid: tempo
|
||||
type: tempo
|
||||
access: proxy
|
||||
url: https://tempo-tls:8443
|
||||
jsonData:
|
||||
httpMethod: GET
|
||||
tlsAuth: true
|
||||
tlsAuthWithCACert: true
|
||||
# Из trace можно перейти к логам того же trace: строка лога содержит
|
||||
# trace_id, поэтому filterByTraceID ищет его в теле.
|
||||
tracesToLogsV2:
|
||||
datasourceUid: loki
|
||||
spanStartTimeShift: "-1h"
|
||||
spanEndTimeShift: "1h"
|
||||
filterByTraceID: true
|
||||
filterBySpanID: false
|
||||
serviceMap:
|
||||
datasourceUid: prometheus
|
||||
nodeGraph:
|
||||
enabled: true
|
||||
secureJsonData:
|
||||
tlsCACert: $__file{/certs/ca.crt}
|
||||
tlsClientCert: $__file{/certs/grafana-client.crt}
|
||||
tlsClientKey: $__file{/certs/grafana-client.key}
|
||||
Reference in New Issue
Block a user