code: public static void init(final String serviceName, final String env) {
          try {
              MetricsManager.init(serviceName, env, InetAddress.getLocalHost().getHostName());
          } catch (UnknownHostException e) {
              throw new RuntimeException("Cannot get hostname of the localhost");
          }
      }
docs: Initialize MetricsManager by providing a service name, environment, customized hostInfo,
  for example, an IP address of the localhost.
  <p>
  Note: only the first init call wins. Subsequent init calls will be ignored.
  
  @param serviceName, a name to identify your service
  @param env,         the environment the service is running in like Development, Production, etc.