mirror of https://github.com/grafana/grafana.git
Devenv: Add tempo and pyroscope to the provisioned data sources (#109853)
This commit is contained in:
parent
b4ded7847e
commit
ede33327d0
|
|
@ -171,6 +171,51 @@ datasources:
|
||||||
|
|
||||||
- name: gdev-loki
|
- name: gdev-loki
|
||||||
type: loki
|
type: loki
|
||||||
|
uid: gdev-loki
|
||||||
access: proxy
|
access: proxy
|
||||||
url: http://loki:3100
|
url: http://loki:3100
|
||||||
editable: false
|
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'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue