diff --git a/apps/otel.yaml b/apps/otel.yaml new file mode 100644 index 0000000..a0982d7 --- /dev/null +++ b/apps/otel.yaml @@ -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 diff --git a/apps/otel/otel.yaml b/apps/otel/otel.yaml new file mode 100644 index 0000000..d4e4ea2 --- /dev/null +++ b/apps/otel/otel.yaml @@ -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]