-
Notifications
You must be signed in to change notification settings - Fork 106
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
Question about metrics-datadog usage #61
Comments
Hi @s101d1 ! Unfortunately, I'm not very familiar with Dropwizard either; we use Play Framework here at Coursera. I dug around Dropwizard a bit and it looks like you shouldn't need to start the reporter on your own. Dropwizard should pick up your configuration from the yaml file and start |
I removed them and still don't see metric data of "findUser" in DataDog Agent logs. |
If I add this settings on config.yml, it shows the findUser metrics info on the console:
Not sure if the DataDog Agent Manager app has bug or I'm missing someting here. |
Make sure you have a DataDog agent and a DogStatsD listener running on the localhost where your application is running. The reporter under the hood sends data to DogStatsD endpoint, which, by default, is expected to be running on localhost:8125. |
I have Dropwizard app with a Resource class and its method annotated with @timed annotation:
When I opened http://localhost:8081/metrics?pretty=true on browser, I can see the findUser method metrics data, such as:
But I don't see the same metric data in DataDog Agent Manager logs.
Most of metrics data I see are jvm related metrics such as:
(as showed in "Logs & Status" -> "Dogstatsd Logs")
FYI this is the code where I enable the DataDog metrics:
and in the dropwizard yml file:
I'm new to dropwizard metrics so perhaps I missed something here?
Also, what is the difference between
frequency
option in yml and period time inreporter.start(10, TimeUnit.SECONDS)
?The text was updated successfully, but these errors were encountered: