feat: log drain (wip)
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
[SERVICE]
|
||||
Flush 1
|
||||
Daemon off
|
||||
[INPUT]
|
||||
Name forward
|
||||
Buffer_Chunk_Size 1M
|
||||
Buffer_Max_Size 6M
|
||||
# [OUTPUT]
|
||||
# Name nrlogs
|
||||
# Match *
|
||||
# license_key ${LICENSE_KEY}
|
||||
# base_uri https://log-api.eu.newrelic.com/log/v1
|
||||
|
||||
[OUTPUT]
|
||||
Name stdout
|
||||
Match *
|
||||
@@ -1,9 +0,0 @@
|
||||
version: '3'
|
||||
services:
|
||||
coolify-fluent-bit:
|
||||
image: cr.fluentbit.io/fluent/fluent-bit:2.0
|
||||
command: -c /fluent-bit.conf
|
||||
volumes:
|
||||
- ./fluent-bit.conf:/fluent-bit.conf
|
||||
ports:
|
||||
- 24224:24224
|
||||
@@ -1,21 +0,0 @@
|
||||
version: '3'
|
||||
services:
|
||||
newrelic-infra:
|
||||
container_name: newrelic-infra
|
||||
image: newrelic/infrastructure:latest
|
||||
networks:
|
||||
- coolify
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
privileged: true
|
||||
pid: host
|
||||
volumes:
|
||||
- "/:/host:ro"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
- "newrelic-infra:/etc/newrelic-infra"
|
||||
environment:
|
||||
- NRIA_LICENSE_KEY=${NRIA_LICENSE_KEY}
|
||||
- NRIA_DISPLAY_NAME=${HOSTNAME}
|
||||
|
||||
networks:
|
||||
coolify:
|
||||
@@ -1,34 +0,0 @@
|
||||
receivers:
|
||||
hostmetrics:
|
||||
collection_interval: 5s
|
||||
scrapers:
|
||||
cpu:
|
||||
metrics:
|
||||
system.cpu.utilization:
|
||||
enabled: true
|
||||
processors:
|
||||
resourcedetection:
|
||||
detectors: [env, system]
|
||||
system:
|
||||
hostname_sources: ["os"]
|
||||
resource_attributes:
|
||||
host.id:
|
||||
enabled: true
|
||||
batch:
|
||||
memory_limiter:
|
||||
check_interval: 1s
|
||||
limit_mib: 1000
|
||||
spike_limit_mib: 200
|
||||
exporters:
|
||||
debug:
|
||||
verbosity: detailed
|
||||
otlp:
|
||||
endpoint: ${OTLP_ENDPOINT}
|
||||
headers:
|
||||
api-key: ${OTLP_API_KEY}
|
||||
service:
|
||||
pipelines:
|
||||
metrics:
|
||||
receivers: [hostmetrics]
|
||||
processors: [memory_limiter, resourcedetection, batch]
|
||||
exporters: [debug, otlp]
|
||||
Reference in New Issue
Block a user