Giter Club home page Giter Club logo

metrics-spring-graphite's Introduction

#Spring Module for Yammer Metrics Graphite Reporter

##About

The metrics-spring-graphite module integrates Yammer Metrics Graphite Reporter with Spring via a simple XML configuration. For more information on Graphite, please visit the Graphite Project.

###Maven

<dependency>
	<groupId>com.dealer.metrics</groupId>
	<artifactId>metrics-spring-graphite</artifactId>
	<version>2.1.5</version>
</dependency>

###Basic Usage

Spring Context XML:

<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:metrics-graphite="http://www.ryantenney.com/schema/metrics/graphite"
	   xsi:schemaLocation="
			http://www.springframework.org/schema/beans
			http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
			http://www.dealer.com/schema/metrics/graphite
			http://www.dealer.com/schema/metrics/graphite/metrics-graphite-2.1.xsd">

	<metrics-graphite:graphite-reporter host="192.168.1.1" port="5555" />

	<!-- beans -->

</beans>

###XML Config

The host attribute is the only required attribute for the tag. In addtion, the <metrics-graphite:graphite-reporter> tag has the following optional arguments:

  • metrics-registry - the id of the MetricsRegsitry bean with which the generated metrics should be registered. If omitted, this defaults to registry provided by Metrics.defaultRegistry().
  • prefix - the string to be pre-pended to the metric name associated with this reporter.
  • port - sets the port used to connect to a Graphite server (defaults to 2003).
  • clock - specifies how to measure the passage of time for the reporter (based on implementations of com.yammer.metrics.core.Clock). Defaults to "DEFAULT".
  • period - sets how often the reporter should send data to Graphite. Defaults to 1.
  • time-unit - sets the time unit for the period (based on the enumerated values contained in java.util.concurrent.TimeUnit). Defaults to "MINUTES".

##License

Copyright (c) 2012 Jonathan Pearlin, Dealer.com

Published under Apache Software License 2.0, see LICENSE

metrics-spring-graphite's People

Contributors

jdpgrailsdev avatar

Watchers

Maxim Kharchenko avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.