-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvector.yml
More file actions
50 lines (50 loc) · 956 Bytes
/
Copy pathvector.yml
File metadata and controls
50 lines (50 loc) · 956 Bytes
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
data_dir: /var/lib/vector
sources:
pslogger:
type: file
include:
- /logs/out.log
read_from: beginning
traces:
type: http_server
address: 0.0.0.0:4318
path: /v1/traces
encoding: text
transforms:
parse_pslogger:
type: remap
inputs:
- pslogger
source: |
parsed, err = parse_json(.message)
if err != null {
log("JSON parse failed: " + err, level: "warn")
parsed = {}
}
. = parsed
sinks:
loki:
type: loki
inputs:
- parse_pslogger
endpoint: http://otel-lgtm:3100
healthcheck:
enabled: true
encoding:
codec: json
labels:
job: pslogger
severity: "{{ severity_text }}"
grafana:
type: http
inputs:
- traces
uri: http://otel-lgtm:4318/v1/traces
method: post
encoding:
codec: text
batch:
enabled: false
request:
headers:
Content-Type: application/json