class ConduitMetrics {

  @SuppressWarnings("rawtypes")
  public static Gauge registerGauge(String name, Gauge gaugeInst) {
    if(!isEnabled){
      LOG.warn("metrics not enabled");
      return null;
    }
    if (registry.getGauges().get(name) != null) {
      LOG.warn("Gauge with name " + name + " already exsits");
      return null;
    }
    return registry.register(name, gaugeInst);
  }

}