zenmoto / metrics-splunk

A Splunk reporter for the Metrics library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Splunk reporter for the Metrics library

License:Creative Commons Zero v1.0 Universal


Languages

Language:Java 100.0%