Skip to content

jonmcewen/camel-spring-boot-metrics-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

camel-spring-boot-metrics-example

Send metrics to Graphite from a Spring Boot app that uses Apache Camel

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/camel-metrics-example-0.0.1-SNAPSHOT.jar

About

Send metrics to Graphite from a Spring Boot app that uses Apache Camel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages