Skip to content

service telemetry metrics only binding to localhost #39597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jscancella opened this issue Apr 23, 2025 · 2 comments
Closed

service telemetry metrics only binding to localhost #39597

jscancella opened this issue Apr 23, 2025 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@jscancella
Copy link

Component(s)

No response

What happened?

Description

In version 0.123.0 despite configuring the collector to bind to 0.0.0.0:8888 for metrics it only binds to localhost:8888. This is causing me issues when I try to navigate to this as a running container on my AWS account. The same config works fine in version 0.121.1

Steps to Reproduce

Add telemetry metrics to the service over port 8888:

...
service:
  telemetry:
    metrics:
      address: 0.0.0.0:8888
....

Expected Result

The collector should bind to all addresses on port 8888:

Image

Actual Result

Image

Collector version

0.123.0

Environment information

Environment

AWS ECS - but I was able to reproduce this locally as a regular docker container

OpenTelemetry Collector configuration

Log output

Additional context

No response

@jscancella jscancella added bug Something isn't working needs triage New item requiring triage labels Apr 23, 2025
@iblancasa
Copy link
Contributor

iblancasa commented Apr 24, 2025

The address field is deprecated now: open-telemetry/opentelemetry-collector#12756.

Also, this should go in the core repo https://github.com/open-telemetry/opentelemetry-collector.

@iblancasa iblancasa added duplicate This issue or pull request already exists question Further information is requested and removed bug Something isn't working needs triage New item requiring triage labels Apr 24, 2025
@jscancella
Copy link
Author

jscancella commented Apr 24, 2025

The address field is deprecated now: open-telemetry/opentelemetry-collector#12756.

Also, this should go in the core repo https://github.com/open-telemetry/opentelemetry-collector.

thank you for pointing that out. From looking at the code it seems this was replaced with this?

...
service:
  telemetry:
    metrics:
      readers:
        - pull:
          exporter:
            prometheus:
              host: 0.0.0.0
              port: 8888
...

on edit: For future people searching the answer is yes. Looks like that is pointed out in the documentation here: https://opentelemetry.io/docs/collector/internal-telemetry/#configure-internal-metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants