Back to Hystrix

hystrix-codahale-metrics-publisher

hystrix-contrib/hystrix-codahale-metrics-publisher/README.md

1.5.181.2 KB
Original Source

hystrix-codahale-metrics-publisher

This is an implementation of HystrixMetricsPublisher that publishes metrics using Coda Hale Metrics version 3. If you are using Yammer Metrics version 2, please use the hystrix-yammer-metrics-publisher module instead.

See the Metrics & Monitoring Wiki for more information.

Binaries

Binaries and dependency information for Maven, Ivy, Gradle and others can be found at http://search.maven.org.

Example for Maven:

xml
<dependency>
    <groupId>com.netflix.hystrix</groupId>
    <artifactId>hystrix-codahale-metrics-publisher</artifactId>
    <version>1.1.2</version>
</dependency>

and for Ivy:

xml
<dependency org="com.netflix.hystrix" name="hystrix-codahale-metrics-publisher" rev="1.1.2" />

Example usage (make it work/plug it in):

  HystrixPlugins.getInstance().registerMetricsPublisher(new HystrixCodahaleMetricsPublisher(yourMetricRegistry));