Devenv: Add tempo and pyroscope to the provisioned data sources (#109853)

This commit is contained in:
Alexander Zobnin 2025-08-20 12:09:08 +02:00 committed by GitHub
parent b4ded7847e
commit ede33327d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 45 additions and 0 deletions

View File

@ -171,6 +171,51 @@ datasources:
- name: gdev-loki
type: loki
uid: gdev-loki
access: proxy
url: http://loki:3100
editable: false
- name: gdev-pyroscope
type: grafana-pyroscope-datasource
uid: gdev-pyroscope
access: proxy
url: http://pyroscope:4040
editable: false
- name: gdev-tempo
type: tempo
uid: gdev-tempo
access: proxy
url: http://tempo:3200
editable: false
correlations:
- targetUID: gdev-loki
label: 'Logs (correlation)'
description: 'Correlation to logs stored in Loki'
config:
type: query
target:
expr: '{ job="job" }'
field: 'traceID'
jsonData:
tracesToLogsV2:
datasourceUid: gdev-loki
spanStartTimeShift: '5m'
spanEndTimeShift: '-5m'
customQuery: true
query: '{filename="/var/log/grafana/grafana.log"} |="$${__span.traceId}"'
tracesToProfiles:
datasourceUid: gdev-pyroscope
profileTypeId: 'process_cpu:cpu:nanoseconds:cpu:nanoseconds'
tracesToMetrics:
datasourceUid: gdev-prometheus
spanStartTimeShift: '1h'
spanEndTimeShift: '-1h'
tags: [{ key: 'job' }]
queries:
- name: 'Metrics'
query: 'sum(rate({$$__tags}[5m]))'
serviceMap:
datasourceUid: 'gdev-prometheus'
histogramType: 'both' # 'classic' or 'native' or 'both'