k8s-research-monitoring/docker/opentelemetry/collector/compose.yaml

10 lines
315 B
YAML

services:
collector:
image: otel/opentelemetry-collector-contrib:latest
ports:
- "4317:4317" # OTLP gRPC
- "55681:55681" # OTLP HTTP
- "8888:8888" # Prometheus metrics endpoint
volumes:
- ./config.yaml:/etc/otel/config.yaml
command: ["--config", "/etc/otel/config.yaml"]