Skip to content

jgoelen/graphite-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot starter for Graphite

Build Status

Adds the Codahale metrics-graphite module to your Spring Boot application. It allows your application to constantly stream metric values to a Graphite server.

Usage

Make sure the Spring Boot Actuator dependency is declared in the Maven build file:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

Add the following dependency:

<dependency>
    <groupId>com.github.jgoelen</groupId>
    <artifactId>graphite-spring-boot-starter</artifactId>
    <version>0.5.x</version>
</dependency>

It can be found in the following maven repository:

<repository>
    <snapshots>
        <enabled>false</enabled>
    </snapshots>
    <id>central</id>
    <name>bintray</name>
    <url>http://jcenter.bintray.com</url>
</repository>

Configuration

Feature flag to enable/disable the reporter.

graphite.enabled=true

Host and port of the Graphite server.

graphite.host=graphite.server.io
graphite.port=2300

The reporting interval in seconds.

graphite.report-interval=5

The prefix for all metric names that get published to Graphite.

graphite.prefix=production.applications.user_service.host

The graphite sender type (udp, tcp or pickled).

graphite.sender-type=udp

Supported versions

For the moment Spring Boot version 1.5.x is supported.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published