-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgrafana.yml
More file actions
70 lines (70 loc) · 1.84 KB
/
Copy pathgrafana.yml
File metadata and controls
70 lines (70 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: true
version: 1
editable: true
jsonData:
maxLines: 1000
derivedFields:
- datasourceUid: Tempo
matcherRegex: .*TraceId\":"(\w{32}).*
name: TraceID
url: '$${__value.raw}'
- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: false
version: 1
editable: true
apiVersion: 1
uid: tempo
jsonData:
tracesToLogsV2:
# Field with an internal link pointing to a logs data source in Grafana.
# datasourceUid value must match the uid value of the logs data source.
datasourceUid: Loki
spanStartTimeShift: '1h'
spanEndTimeShift: '-1h'
tags: ['job', 'instance', 'pod', 'namespace']
filterByTraceID: false
filterBySpanID: false
customQuery: true
#query: 'TraceID="${__span.tags.method}"'
query: '{app="{Link-BoTW}"} |= `` | json | TraceId = `${__span.tags.traceId}`'
tracesToMetrics:
datasourceUid: Prometheus
spanStartTimeShift: '1h'
spanEndTimeShift: '-1h'
tags: [{ key: 'service.name', value: 'service' }, { key: 'job' }]
queries:
- name: 'Sample query'
query: 'sum(rate(process_runtime_dotnet_gc_committed_memory_size_bytes{$__tags}[5m]))'
serviceMap:
datasourceUid: Prometheus
nodeGraph:
enabled: true
search:
hide: false
lokiSearch:
datasourceUid: Loki
traceQuery:
timeShiftEnabled: true
spanStartTimeShift: '1h'
spanEndTimeShift: '-1h'
spanBar:
type: 'Tag'
tag: 'http.path'
- name: Prometheus
type: prometheus
url: http://prometheus:9090
access: proxy
editable: true