Update OTEL collector config and docker setup

- 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
This commit is contained in:
2026-08-01 11:11:26 +00:00
parent 07ff12f3dc
commit c8118ee474
3 changed files with 50 additions and 35 deletions
+3 -6
View File
@@ -1,6 +1,4 @@
volumes:
services:
# OpenTelemetry Collector - receives and routes all telemetry
@@ -8,13 +6,12 @@ services:
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
depends_on:
- tempo
- mimir
- loki
- /var/run/docker.sock:/var/run/docker.sock