mirror of
https://github.com/fosrl/newt.git
synced 2026-03-26 12:36:45 +00:00
28 lines
873 B
YAML
28 lines
873 B
YAML
services:
|
|
newt:
|
|
image: your/newt:latest
|
|
environment:
|
|
- NEWT_METRICS_PROMETHEUS_ENABLED=false # wichtig: direkte /metrics-Erfassung aus
|
|
- NEWT_METRICS_OTLP_ENABLED=true # OTLP an den Collector
|
|
# optional:
|
|
# - NEWT_METRICS_INCLUDE_TUNNEL_ID=false
|
|
# Falls Newt selbst Ports exponiert, hier NICHT 2112 mappen
|
|
# ports: []
|
|
|
|
otel-collector:
|
|
image: otel/opentelemetry-collector-contrib:latest
|
|
command: ["--config=/etc/otelcol/config.yaml"]
|
|
volumes:
|
|
- ./examples/otel-collector.yaml:/etc/otelcol/config.yaml:ro
|
|
ports:
|
|
- "4317:4317" # OTLP gRPC
|
|
- "8889:8889" # Prometheus Exporter (wird von Prometheus gescraped)
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
volumes:
|
|
- ./examples/prometheus.with-collector.yml:/etc/prometheus/prometheus.yml:ro
|
|
ports:
|
|
- "9090:9090"
|
|
|