Skip to content

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

License

Notifications You must be signed in to change notification settings

stuart-warren/metrics-opentsdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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