Skip to content
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

[BUG] Telemetry port (:5000) only exposed on localhost, not on 0.0.0.0 #29389

Open
arnavdugar-openai opened this issue Sep 16, 2024 · 2 comments

Comments

@arnavdugar-openai
Copy link

Agent Environment

  • Datadog Agent Version: gcr.io/datadoghq/agent:7.54.0-jmx
  • Relevant configuration: Using the Datadog Agent in a Kubernetes pod.

Describe what happened:
The Datadog agent does not expose the telemetry port (:5000) on 0.0.0.0, but only on localhost. This makes it impossible to scrape the telemetry metrics from outside the pod, which is a common requirement for monitoring setups in Kubernetes environments.

Describe what you expected:
The telemetry port (:5000) should be exposed on 0.0.0.0 so that it can be accessed externally from other pods or services for scraping.

Steps to reproduce the issue:

  1. Deploy the Datadog agent using the image gcr.io/datadoghq/agent:7.54.0-jmx in a Kubernetes pod.
  2. Attempt to scrape metrics from the telemetry port (:5000) from outside the pod.
  3. Notice that the telemetry port is only exposed on localhost, making it inaccessible externally.
@arnavdugar-openai arnavdugar-openai changed the title [BUG] Telemetry Port (:5000) Only Exposed on localhost, Not on 0.0.0.0 [BUG] Telemetry port (:5000) only exposed on localhost, not on 0.0.0.0 Sep 16, 2024
@pgimalac
Copy link
Member

Hi @arnavdugar-openai, thanks for opening an issue !

The telemetry endpoint is not made for users to query but rather for the agent itself it use (eg. from some agent checks, or when creating a flare), so this is not something currently supported. There are also security concerns when binding to 0.0.0.0...

What is your use case for scrapping the telemetry endpoint of the agent ?

@pgimalac
Copy link
Member

Hello @arnavdugar-openai, do you have any information to share on your use case for scrapping the telemetry endpoint ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants