-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Metrics missing after adding com.codahale.metrics #4142
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
Comments
/cc @dsyer |
The assumption is that if you are using Dropwizard then that is what you use for export as well. You can switch the export back on by creating a We can certainly rethink the defaults if people find them inconvenient or surprising. |
Thanks for your replay. I think what can happen is, that statsd is used to collect the metrics (because i.e. it's already there used by other apps). Someone might want to store standard Spring traffic metrics and JVM metrics at the same time. Some basic JVM metrics are available in /metrics endpoint, but they don't get exported to statsd via ExportWriter. An alternative to get JVM metrics is Dropwizard reader. It works, but if overrides standard Spring traffic metrics. I could imagine, that exposing of all metrics from /metrics endpoint to a ExportWriter could be also useful. FYI: I'm just playing around and my case does not come from a real project Thanks, Lukasz |
I have the same problem: I have created a custom
The same program also uses datastax Casandra driver. It has a dependency with
But now my metrics are not exported anymore to my custom How can I fix this? |
This has been superseded by the planned move to Micrometer-based metrics (#9970) |
Hi,
I use Spring Boot 1.3.0 M5.
When I add
compile('com.codahale.metrics:metrics-jvm:3.0.1')
dependency to my project standard http-request related metrics are no longer passed to theStatsdMetricsWriter
.Documentation mentions that that "CounterService and GaugeService are replaced with a DropwizardMetricServices". It happens in
MetricsDropwizardAutoConfiguration
and i think this is the reason.Link to the documentation: http://docs.spring.io/spring-boot/docs/1.3.0.M5/reference/htmlsingle/#production-ready-dropwizard-metrics
I wanted to publish JVM stats from dropwizard and internal request statistics as well. It does not work.
There is one similar StackOverflow thread http://stackoverflow.com/questions/32215723/exporting-spring-boot-actuator-metrics-dropwizard-metrics-to-statsd. After using example code from this thread results are the same. Dropwizard JVM metrics are published to the Statsd daemon, but internal Spring metrics are not.
Is there any way to combine both metric sources ?
Thanks for you help.
The text was updated successfully, but these errors were encountered: