Add otel collector

This commit is contained in:
2025-11-05 18:12:14 +01:00
parent 918688e675
commit 383b195a03
2 changed files with 82 additions and 0 deletions

20
apps/otel.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: otel
namespace: argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: otel
syncPolicy:
automated:
prune: true
selfHeal: false
syncOptions:
- CreateNamespace=true
source:
repoURL: https://github.com/zoriya/snow
targetRevision: HEAD
path: apps/otel

62
apps/otel/otel.yaml Normal file
View File

@@ -0,0 +1,62 @@
apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
name: otel
spec:
mode: daemonset
config:
receivers:
hostmetrics:
scrapers:
cpu:
disk:
filesystem:
load:
memory:
network:
process:
processes:
paging:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 5s
limit_mib: 4000
spike_limit_mib: 500
batch:
send_batch_size: 2000
send_batch_max_size: 2000
timeout: 5s
exporters:
debug: {}
extensions:
health_check:
endpoint: 0.0.0.0:13133
pprof:
endpoint: 0.0.0.0:1777
zpages:
endpoint: 0.0.0.0:55679
service:
extensions: [health_check, pprof, zpages]
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [debug]
metrics:
receivers: [otlp, hostmetrics]
processors: [memory_limiter, batch]
exporters: [debug]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [debug]