Skip to content

jonmcewen/spring-boot-metrics-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-metrics-example

This example project uses Dropwizard Metrics to export JVM metrics to Graphite.

Spring Boot auto-configures the com.codahale.metrics.MetricRegistry. See code comments in Application.java for further details.

Requires Graphite server running with UDP enabled (set ENABLE_UDP_LISTENER = True in carbon.conf).

If Graphite is not on your local machine, replace localhost in Application.java with the hostname or IP address of your Graphite server.

If you want to use TCP instead of UDP, use com.codahale.metrics.graphite.Graphite instead of com.codahale.metrics.graphite.GraphiteUDP, as shown here: http://metrics.dropwizard.io/3.1.0/manual/graphite/

When you're ready to try it: mvn clean install && java -jar target/metrics-example-0.0.1-SNAPSHOT.jar

About

Uses Dropwizard Metrics to export JVM metrics to Graphite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages