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

Correct config for kubernetes #22

Open
matt-dalton opened this issue Dec 23, 2020 · 0 comments
Open

Correct config for kubernetes #22

matt-dalton opened this issue Dec 23, 2020 · 0 comments

Comments

@matt-dalton
Copy link

I am trying to run this plugin on Kubernetes. Having followed the dogstatsd setup instructions here, I've then added this to my uwsgi_config.ini:

enable-metrics = true
plugin = dogstatsd
stats-push=dogstatsd:$(DD_AGENT_HOST):8125,uwsgi
print = Pushing uwsgi stats to dogstatsd on $(DD_AGENT_HOST):8125
stats-pusher-default-freq=10
dogstatsd-extra-tags = env:$(AWS_ENVIRONMENT),service:uwsgi

where DD_AGENT_HOST is defined in my deployment.yaml as:

- name: DD_AGENT_HOST
   valueFrom:
       fieldRef:
            fieldPath: status.hostIP

This runs successfully, in the sense that this appears in the logs:

    Pushing uwsgi stats to dogstatsd on 172.19.30.101:8125
    ...
    initialized 54 metrics

But nothing appears in datadog. I also don't see any errors. Is there anything obvious I've missed here? Or anything I can do to debug the config?

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

1 participant