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

using datadogpy on osx via docker for mac #303

Closed
luck02 opened this issue Oct 18, 2018 · 2 comments
Closed

using datadogpy on osx via docker for mac #303

luck02 opened this issue Oct 18, 2018 · 2 comments

Comments

@luck02
Copy link

luck02 commented Oct 18, 2018

I'm getting the following errors on initialize:

    datadog.initialize(api_key=datadog_api_key, app_key=datadog_app_key,
                       statsd_host="localhost", 
                       statsd_port=8125)

error:

18-10-2018:12:23:20,839 INFO     [hostname.py:59] No agent or invalid configuration file found

Docker agent is definitely running, the ports should be exposed properly (but i'm a bit new to using docker for mac vs. docker / docker compose on osx... much more experienced setting this stuff up on linux hosts)... However, there's something fundamental I'm missing here about how to initialize DD.

@luck02
Copy link
Author

luck02 commented Oct 18, 2018

I'd say this issue ties directly into: #294 IE lack of documentation / expected use cases.

@dabcoder
Copy link
Contributor

dabcoder commented Jan 6, 2020

Sorry for the delay in updating this thread.
This is actually tied to #428. The library tries to fetch the hostname from the agent 5 configuration file. If it fails to find it, it'll display this log line. We've added an option to get rid of this line and downgraded it to WARN as well.
Hope that clarifies the situation.

@dabcoder dabcoder closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants