Skip to content

simongodard/simplegraphiteclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplegraphiteclient

A simple java client for sending metrics to graphite.

Usage:

SimpleGraphiteClient graphiteClient = new SimpleGraphiteClient("my_graphite_host", 2003);

// send single value with current timestamp
graphiteClient.sendMetric("universal.answer", 42);

// send single value with custom timestamp
graphiteClient.sendMetric("universal.answer", 42, 1360848777l);

// send multiple values
Map<String, Integer> allAnswers = new HashMap<String, Integer>() {{
	put("where.is.my.towel", 42);
	put("where.are.the.dolphins", 42);
}};
graphiteClient.sendMetrics(allAnswers);

Download

The client jar is distributed via maven central.

<dependency>
	<groupId>com.zanox.lib.simplegraphiteclient</groupId>
	<artifactId>simplegraphiteclient</artifactId>
    <version>1.0.0</version>
</dependency>

About

Java client lib for sending one shot metrics to graphite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published