mirror of
https://github.com/zoriya/snow.git
synced 2025-12-06 07:16:19 +00:00
Add otel collector
This commit is contained in:
20
apps/otel.yaml
Normal file
20
apps/otel.yaml
Normal 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
62
apps/otel/otel.yaml
Normal 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]
|
||||||
Reference in New Issue
Block a user