router icon indicating copy to clipboard operation
router copied to clipboard

Error repeats every 10s in the logs when the prometheus exporter is enabled.

Open adam-reynolds-lbg opened this issue 7 months ago • 0 comments

Router logging a error when the prometheus exporter is enabled.

telemetry:
  apollo:
    field_level_instrumentation_sampler: always_off
  exporters:
     metrics:
       otlp:
         enabled: false
       prometheus:
         enabled: true
         listen: 0.0.0.0:9090
         path: /metrics

This is logged OpenTelemetry metric error occurred: Metrics exporter otlp failed with the grpc server returns error (The service is currently unavailable): , detailed error message: Connection reset by peer (os error 104)

To Reproduce

Steps to reproduce the behavior:

  1. Add the prometheus config to config.yaml
  2. Deploy the router application.
  3. See error

Expected behavior

Error is not logged.

Output

If applicable, add output to help explain your problem.

This is using v2.1.0 of the router.

Additional context

Add any other context about the problem here. This config is also being set APOLLO_TELEMETRY_DISABLED=true

adam-reynolds-lbg avatar Apr 07 '25 14:04 adam-reynolds-lbg