code: private void addStatsdPlugin(String host, Integer port, String appName, Double sampleRate) {
      StatsdPlugin statsdPlugin;
      try {
        statsdPlugin = new StatsdPlugin(host, port, appName, sampleRate);
        InApplicationMonitor.getInstance().registerPlugin(statsdPlugin);
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
    }
docs: /* operations that can be invoked via JMX