generated from GamingChaos/docker-compose
- Use ssl/ certificates for gRPC and HTTP TLS - Add Prometheus scrape configs for local and gitea targets Keep matrix and caddy scrape targets commented for future use - Switch exporters to OTLP gRPC and enable TLS certs - Remove Tempo, Mimir, Loki exporters - Use batch + resource_detection/docker in all pipelines - Enable telemetry metrics - Remove top-level volumes from docker-compose - Mount docker socket and add docker group - Drop unused depends_on entries - Fix cert script to chown ssl dir with sudo -R
18 lines
480 B
YAML
18 lines
480 B
YAML
|
|
services:
|
|
|
|
# OpenTelemetry Collector - receives and routes all telemetry
|
|
otel-collector:
|
|
image: otel/opentelemetry-collector-contrib
|
|
container_name: otel-collector
|
|
restart: unless-stopped
|
|
group_add:
|
|
- 987 # docker group
|
|
ports:
|
|
- 4317:4317 # gprc
|
|
- 4318:4318 # http
|
|
volumes:
|
|
- ./config/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
|
|
- ./ssl:/etc/otelcol-contrib/ssl
|
|
- /var/run/docker.sock:/var/run/docker.sock
|