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]: 429s in nginx output #167

Closed
ganey opened this issue Jan 30, 2025 · 3 comments
Closed

[BUG]: 429s in nginx output #167

ganey opened this issue Jan 30, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ganey
Copy link

ganey commented Jan 30, 2025

Module Version(s)

1.4.0

Bug Report

Getting a lot of 429's in nginx output with a sample rate of 0.01 running to apm via a socket.

Not sure where the 429 is from, the agent socket? or upstream at datadog? How can i figure out where?

Reproduction Code

The config is a bit complex as it's a pod on kubernetes, we have around 30 pods running, traffic can be 2,000 requests a second when these logs appear.

nginx config has:

datadog_sample_rate 0.01;
datadog_agent_url unix:///var/run/datadog/apm.socket;

Error Logs

nginx output log:

2025/01/30 14:59:33 [error] 170#176: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}
2025/01/30 14:59:33 [error] 175#178: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}
2025/01/30 14:59:33 [error] 160#165: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}
2025/01/30 14:59:33 [error] 107#111: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}
2025/01/30 14:59:33 [error] 152#157: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}
2025/01/30 14:59:33 [error] 131#136: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}
2025/01/30 14:59:33 [error] 164#172: nginx-datadog: Unexpected telemetry response status 429 with body (if any, starts on next line):
{}

Operating System

5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 GNU/Linux

@ganey ganey added the bug Something isn't working label Jan 30, 2025
@ganey ganey changed the title [BUG]: [BUG]: 429s in nginx output Jan 30, 2025
@dmehala dmehala self-assigned this Feb 7, 2025
@dmehala
Copy link
Contributor

dmehala commented Feb 11, 2025

Hi @ganey
This issue went under my radar, my bad.

The output log indicate that NGINX is sending too many telemetry metrics to the agent. This usually happens when too many NGINX child process send telemetry at the same time. We do collect anonymous telemetry on usage of our library to assess the reliability and usage of our product. You can opt-out by setting the environment variable to DD_INSTRUMENTATION_TELEMETRY_ENABLED=false.

@ganey
Copy link
Author

ganey commented Feb 11, 2025

@dmehala will disabling telemetry disable the apm request/hit counts in datadog?

edit looks fine thanks!

@ganey
Copy link
Author

ganey commented Feb 12, 2025

This has resolved the issue, thanks!

@ganey ganey closed this as completed Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants