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

Unable to send metrics inside docker container #860

Open
viperfx opened this issue Oct 9, 2024 · 2 comments
Open

Unable to send metrics inside docker container #860

viperfx opened this issue Oct 9, 2024 · 2 comments
Labels
kind/bug Bug related issue stale Stale - Bot reminder

Comments

@viperfx
Copy link

viperfx commented Oct 9, 2024

Describe the bug
Unable to send metrics inside docker container.

To Reproduce
Steps to reproduce the behavior:

  1. Start a python shell in docker container
  2. Run the code snippet below
  3. Check datadog if the metric is sent.
from datadog import statsd
from datadog import initialize
initialize(statsd_host="localhost",statsd_port=8125)
statsd.increment("my_metric")

Expected behavior
Metric should send as expected.

Run the above steps, but in a local python shell, outside of a docker container. It works as expected.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment and Versions (please complete the following information):

  • Library version: 0.50.1
  • Python version 3.11.10

Additional context
Add any other context about the problem here.

@viperfx viperfx added the kind/bug Bug related issue label Oct 9, 2024
Copy link

github-actions bot commented Nov 9, 2024

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.

@github-actions github-actions bot added the stale Stale - Bot reminder label Nov 9, 2024
@carlosroman
Copy link
Contributor

Has your container got access to the Agent? If not then you need to make sure the container has access to where the Agent is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue stale Stale - Bot reminder
Projects
None yet
Development

No branches or pull requests

2 participants