Skip to content

jasonnerothin/logback-graphite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logback-graphite

A custom logback Appender that writes metrics to a Graphite server using Graphite's "plain text protocol".

To implement, put the jar on your classpath. From the base project directory:

  1. mvn clean package
  2. mvn install:install-file -DgroupId=com.jasonnerothin -DartifactId=logback-graphite -Dversion=1.0 -Dpackaging=jar -Dfile=target/logback-graphite-1.0.jar
  3. Include the dependency in your pom file: <dependency><groupId>com.jasonnerothin</groupId><artifactId>logback-graphite</artifactId><version>1.0</version></dependency>

To configure:

Configure a logback appender like src/main/resources/logback-test.xml.

To run:

  1. Provide two Java properties at runtime: -Dgraphite.host=com.yourhost.name -Dgraphite.port=2003
  2. Pass the logback configuration on the command line or in your classpath: -Dlogback.configurationFile=nameofyourfile.xml

Ship.

About

A logback implementation for graphite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages