generated from boboko/starter
Feat: Removing OTEL collector files and adding victoria logs
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
|
||||
processors:
|
||||
batch:
|
||||
timeout: 5s
|
||||
send_batch_size: 512
|
||||
|
||||
exporters:
|
||||
otlphttp:
|
||||
endpoint: ${env:SIGNOZ_ENDPOINT}
|
||||
compression: gzip
|
||||
|
||||
service:
|
||||
pipelines:
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [otlphttp]
|
||||
metrics:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [otlphttp]
|
||||
logs:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [otlphttp]
|
||||
@@ -0,0 +1,41 @@
|
||||
sources:
|
||||
laravel_logs:
|
||||
type: file
|
||||
include:
|
||||
- /var/www/html/storage/logs/laravel.log
|
||||
read_from: beginning
|
||||
|
||||
transforms:
|
||||
laravel_json:
|
||||
type: remap
|
||||
inputs:
|
||||
- laravel_logs
|
||||
source: |
|
||||
. = parse_json!(.message)
|
||||
.service = "boboko-app"
|
||||
.env = "${APP_ENV}"
|
||||
|
||||
sinks:
|
||||
victorialogs:
|
||||
type: http
|
||||
inputs:
|
||||
- laravel_json
|
||||
uri: "${VICTORIALOGS_ENDPOINT}/insert/jsonline?_stream_fields=service,env,channel,level_name&_msg_field=message&_time_field=datetime"
|
||||
encoding:
|
||||
codec: json
|
||||
framing:
|
||||
method: newline_delimited
|
||||
compression: gzip
|
||||
auth:
|
||||
strategy: basic
|
||||
user: "${VICTORIALOGS_USER}"
|
||||
password: "${VICTORIALOGS_PASSWORD}"
|
||||
batch:
|
||||
max_bytes: 1048576
|
||||
timeout_secs: 5
|
||||
buffer:
|
||||
type: disk
|
||||
max_size: 268435488
|
||||
when_full: block
|
||||
healthcheck:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user