forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathotel-collector.yml
More file actions
114 lines (100 loc) 路 2.31 KB
/
Copy pathotel-collector.yml
File metadata and controls
114 lines (100 loc) 路 2.31 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
extensions:
health_check:
endpoint: 0.0.0.0:13133
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
memory_ballast:
size_in_percentage: 20
size_mib: 128
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: "gistpin-collector"
scrape_interval: 15s
static_configs:
- targets: ["localhost:8888"]
filelog:
include:
- /var/log/gistpin/*.log
exclude:
- /var/log/gistpin/debug.log
operators:
- type: regex_parser
regex: '(?P<timestamp>[^ ]+) (?P<severity>[^ ]+) (?P<body>.*)'
severity:
parse_from: attributes.severity
severity_map:
DEBUG: 5
INFO: 9
WARN: 13
ERROR: 17
timestamp:
parse_from: attributes.timestamp
layout: "%Y-%m-%dT%H:%M:%S.%LZ"
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_http:
endpoint: 0.0.0.0:14268
thrift_binary:
endpoint: 0.0.0.0:6832
exporters:
logging:
loglevel: info
sampling_initial: 5
sampling_thereafter: 200
prometheusremotewrite:
endpoint: "http://prometheus:9090/api/v1/write"
tls:
insecure: true
resource_to_telemetry_conversion:
enabled: true
jaeger:
endpoint: "jaeger:14250"
tls:
insecure: true
otlp:
endpoint: "otel-backend:4317"
tls:
insecure: true
loki:
endpoint: "http://loki:3100/loki/api/v1/push"
tenant_id: "gistpin"
timeout: 10s
retry_on_failure:
enabled: true
initial_interval: 100ms
max_interval: 1s
max_elapsed_time: 30s
service:
extensions: [health_check, pprof, zpages, memory_ballast]
pipelines:
traces:
receivers: [otlp, jaeger]
processors: [attributes, batch]
exporters: [logging, jaeger, otlp]
metrics:
receivers: [otlp, prometheus]
processors: [batch]
exporters: [logging, prometheusremotewrite]
logs:
receivers: [otlp, filelog]
processors: [batch]
exporters: [logging, loki]
telemetry:
logs:
level: info
output_paths: ["stdout"]
metrics:
level: detailed
address: 0.0.0.0:8888