Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 473 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 473 Bytes

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);