Skip to content

stuart-warren/metrics-opentsdb

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

metrics-opentsdb

Compatible with metrics 3.0.1

Extension to Codahale metrics for using with OpenTSDB.

Sends through a local udp_bridge tcollector process by default. (https://github.com/OpenTSDB/tcollector/blob/master/collectors/0/udp_bridge.py)

final MetricRegistry registry = new MetricRegistry();
final OpenTSDB opentsdb = new OpenTSDB();
final OpenTSDBReporter reporter = OpenTSDBReporter.forRegistry(registry)
                                                  .prefixedWith("java")
                                                  .convertRatesTo(TimeUnit.SECONDS)
                                                  .convertDurationsTo(TimeUnit.MILLISECONDS)
                                                  .filter(MetricFilter.ALL)
                                                  .build(opentsdb);

Then use metrics as normal.

About

Extension to Codahale metrics for using with OpenTSDB. Sends through a local udp_bridge tcollector process by default.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages