Skip to content

Instantly share code, notes, and snippets.



Last active Dec 11, 2015
What would you like to do?
Manifest-Version: 1.0
Premain-Class: com.datastax.example.ReportAgent
package com.datastax.example;
import java.lang.instrument.Instrumentation;
import java.util.concurrent.TimeUnit;
import com.yammer.metrics.reporting.GraphiteReporter;
public class ReportAgent
public static void premain(String agentArgs, Instrumentation inst)
// reports metrics to Graphite at, every 60 seconds
GraphiteReporter.enable(60, TimeUnit.SECONDS, "", 2003);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.