2.10.0 breaks my Datadog metrics
See original GitHub issueSo this is how I currently setup my StatsDClient
:
new NonBlockingStatsDClient("", "localhost", 8125);
I just tried updating the version to 2.10.0, and I’ve tried using the old deprecated constructor and then this:
new NonBlockingStatsDClientBuilder().prefix("").hostname("localhost").port(8125).build();
And Datadog metrics stopped showing up if I use either of those. And as soon as I downgraded to 2.9.0, metrics started working again. So am I doing something wrong? Is there some additional thing I need to do in 2.10.0? Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (9 by maintainers)
Top Results From Across the Web
Agent Troubleshooting - Datadog Docs
The first place you should check for metrics is the Metrics Explorer. If you think you might be experiencing issues, follow this checklist...
Read more >Metrics - Datadog Docs
Anatomy of a metric query. A metric query in Datadog looks like this: Example query with color-coded sections. You can break this query...
Read more >Investigate Slow Traces or Endpoints - Datadog Docs
Full profile scopes the data to 60 seconds of the whole service process that executed the previously selected span. Break down code performance...
Read more >Agent Version differences - Datadog Docs
Datadog Agent release numbering follows SemVer rules. Changes between major Agent versions. Agent v7 vs v6; Agent v6 vs v5. Agent v7 is...
Read more >Monitor Status - Datadog Docs
The monitor's query was recently changed. The monitor's timeframe is too short for a metric that provides data infrequently. A host's name previously...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
2.10.1
should be available soon. It’s been released but it hasn’t shown up on maven central just yet. I’m waiting to see if it’s an indexing issue or what not. If the fixed lib isn’t available tomorrow morning (EST) I will chase it down.The issue derived from the fact
2.10.0
was accidentally built atop JDK11 (I had changed the local JDK with jenv to JDK11 and forgot setting it back) and this is what caused the JDK8 problems. The target was1.7
so I’m still a little surprised. In any case2.10.1
should now be good. Apologies for the issue.EDIT: available here - https://mvnrepository.com/artifact/com.datadoghq/java-dogstatsd-client/2.10.1
@truthbk thanks for the fix. One more comment: it would be great if you could keep the code examples on the datadog website up to date. It’s still referring to version 2.8: https://docs.datadoghq.com/developers/dogstatsd/?tab=java