Skip to content

Metrics missing after adding com.codahale.metrics #4142

Closed
@vachacz

Description

@vachacz

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 the StatsdMetricsWriter.

<app-prefix>.gauge.response.greeting:24|g
<app-prefix>.counter.status.200.greeting:2|g

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions