add prometheus collector for self and gitea

This commit is contained in:
2026-08-02 10:24:46 +00:00
parent 6ce22410a5
commit 5660472ee1
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ service:
processors: [batch, resource_detection/docker]
exporters: [otlp_grpc]
metrics:
receivers: [otlp]
receivers: [otlp, prometheus]
processors: [batch, resource_detection/docker]
exporters: [otlp_grpc, debug]
logs:
+7
View File
@@ -1,4 +1,9 @@
networks:
gitea_database:
external: true
services:
# OpenTelemetry Collector - receives and routes all telemetry
@@ -15,3 +20,5 @@ services:
- ./config/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
- ./ssl:/etc/otelcol-contrib/ssl
- /var/run/docker.sock:/var/run/docker.sock
networks:
- gitea_database