-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yml.tpl
68 lines (68 loc) · 1.25 KB
/
config.yml.tpl
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
yaml:
receivers:
otlp:
protocols:
http:
endpoint: {{ .OTLPHost }}:{{ .OTLPHTTPPort }}
grpc:
endpoint: {{ .OTLPHost }}:{{ .OTLPGRPCPort }}
{{- if .EnableZipkin}}
zipkin:
endpoint: 0.0.0.0:9411
{{- end}}
{{- if .EnableProm}}
prometheus:
config:
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 15s
static_configs:
- targets:
{{- range $idx, $target := .PromTarget}}
- '{{ $target -}}'
{{- end}}
{{- end}}
{{- if gt (len .FromJSONFile) 0}}
otlpjsonfile:
include:
- '{{ .FromJSONFile -}}'
start_at: beginning
{{- end}}
processors:
exporters:
tui:
service:
pipelines:
traces:
receivers:
- otlp
{{- if .EnableZipkin}}
- zipkin
{{- end}}
{{- if gt (len .FromJSONFile) 0}}
- otlpjsonfile
{{- end}}
processors:
exporters:
- tui
logs:
receivers:
- otlp
{{- if gt (len .FromJSONFile) 0}}
- otlpjsonfile
{{- end}}
processors:
exporters:
- tui
metrics:
receivers:
- otlp
{{- if .EnableProm}}
- prometheus
{{- end}}
{{- if gt (len .FromJSONFile) 0}}
- otlpjsonfile
{{- end}}
processors:
exporters:
- tui