almost ready
This commit is contained in:
53
monitoring/grafana/datasources.yml
Normal file
53
monitoring/grafana/datasources.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
# Grafana datasource provisioning — Prometheus (default), Loki, Tempo, wired for
|
||||
# trace <-> log <-> metric correlation. Copied to
|
||||
# /etc/grafana/provisioning/datasources/ by install.sh.
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
uid: prometheus
|
||||
access: proxy
|
||||
url: http://localhost:9090
|
||||
isDefault: true
|
||||
jsonData:
|
||||
httpMethod: POST
|
||||
|
||||
- name: Loki
|
||||
type: loki
|
||||
uid: loki
|
||||
access: proxy
|
||||
url: http://localhost:3100
|
||||
jsonData:
|
||||
# Turn a trace_id found on a log line into a clickable jump to the trace in Tempo.
|
||||
# OTLP logs carry the id as structured metadata `trace_id`; adjust the regex if your
|
||||
# app instrumentation emits it differently.
|
||||
derivedFields:
|
||||
- name: TraceID
|
||||
matcherType: label
|
||||
matcherRegex: trace_id
|
||||
datasourceUid: tempo
|
||||
url: "${__value.raw}"
|
||||
urlDisplayLabel: "View trace"
|
||||
|
||||
- name: Tempo
|
||||
type: tempo
|
||||
uid: tempo
|
||||
access: proxy
|
||||
url: http://localhost:3200
|
||||
jsonData:
|
||||
# Span -> related logs in Loki.
|
||||
tracesToLogsV2:
|
||||
datasourceUid: loki
|
||||
spanStartTimeShift: "-1h"
|
||||
spanEndTimeShift: "1h"
|
||||
filterByTraceID: true
|
||||
filterBySpanID: false
|
||||
# Span -> RED metrics in Prometheus (from Tempo's metrics_generator).
|
||||
tracesToMetrics:
|
||||
datasourceUid: prometheus
|
||||
# Service graph + node graph from the generator's service-graph metrics.
|
||||
serviceMap:
|
||||
datasourceUid: prometheus
|
||||
nodeGraph:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user