A Splunk reporter for the Metrics library
Switch branches/tags
Nothing to show
Clone or download
Latest commit f5cf096 Dec 8, 2014

README.md

A Splunk reporter for Metrics.


ServiceArgs args = new ServiceArgs();
args.setUsername("admin");
args.setPassword("changeme");
Service splunk = Service.connect(args);

SplunkReporter
        .forRegistry(metricRegistry)
        .withSource("example-application")
        .addAttribute("some-tag", "foobar")
        .withIndex("my-index")
        .build(splunk)
        .start(10, TimeUnit.SECONDS);