DevOps Experte
OpenTelemetry Collector — Fortgeschrittene Konfiguration¶
OpenTelemetryCollectorObservabilitySampling 5 min Lesezeit
Fortgeschrittener Einsatz des OTel Collectors. Tail Sampling, Processors, Connectors und Deployment-Patterns.
Deployment-Patterns¶
- Agent — DaemonSet auf jedem Node
- Gateway — zentraler Collector
- Agent + Gateway (empfohlen) — Agent filtert, Gateway exportiert
Tail Sampling¶
processors:
tail_sampling:
decision_wait: 10s
num_traces: 100000
policies:
- name: errors
type: status_code
status_code: {status_codes: [ERROR]}
- name: slow-traces
type: latency
latency: {threshold_ms: 2000}
- name: probabilistic
type: probabilistic
probabilistic: {sampling_percentage: 10}
Nützliche Processors¶
processors:
attributes:
actions:
- key: environment
value: production
action: upsert
filter:
traces:
span:
- 'attributes["http.target"] == "/healthz"'
transform:
trace_statements:
- context: span
statements:
- truncate_all(attributes, 256)
resourcedetection:
detectors: [env, system, docker, gcp, aws, azure]
Zusammenfassung¶
Der OTel Collector mit Tail Sampling und fortgeschrittenen Processors ermöglicht intelligentes Filtern von Telemetrie. Das Agent-+-Gateway-Pattern skaliert auf Tausende von Services.
Brauchen Sie Hilfe bei der Implementierung?¶
Unser Team hat Erfahrung mit dem Entwurf und der Implementierung moderner Architekturen. Wir helfen Ihnen gerne.