diff --git a/docker-compose.metrics.collector.yml b/docker-compose.metrics.collector.yml index 36d9938..8d0d536 100644 --- a/docker-compose.metrics.collector.yml +++ b/docker-compose.metrics.collector.yml @@ -5,11 +5,11 @@ services: env_file: - .env environment: - - NEWT_METRICS_PROMETHEUS_ENABLED=false # wichtig: direkte /metrics-Erfassung aus - - NEWT_METRICS_OTLP_ENABLED=true # OTLP an den Collector + - NEWT_METRICS_PROMETHEUS_ENABLED=false # important: disable direct /metrics scraping + - NEWT_METRICS_OTLP_ENABLED=true # OTLP to the Collector # optional: # - NEWT_METRICS_INCLUDE_TUNNEL_ID=false - # Falls Newt selbst Ports exponiert, hier NICHT 2112 mappen + # If Newt itself exposes ports, DO NOT map 2112 here # ports: [] otel-collector: @@ -19,7 +19,7 @@ services: - ./examples/otel-collector.yaml:/etc/otelcol/config.yaml:ro ports: - "4317:4317" # OTLP gRPC - - "8889:8889" # Prometheus Exporter (wird von Prometheus gescraped) + - "8889:8889" # Prometheus Exporter (scraped by Prometheus) prometheus: image: prom/prometheus:latest diff --git a/examples/prometheus.yml b/examples/prometheus.yml index 89e82b4..8b73c5c 100644 --- a/examples/prometheus.yml +++ b/examples/prometheus.yml @@ -7,10 +7,10 @@ scrape_configs: static_configs: - targets: ['newt:2112'] # /metrics relabel_configs: - # optional: tunnel_id droppen + # optional: drop tunnel_id - action: labeldrop regex: 'tunnel_id' - # optional: nur bestimmte sites zulassen + # optional: allow only specific sites - action: keep source_labels: [site_id] regex: '(site-a|site-b)'