@Override
    public boolean matches(String name, Metric metric) {
      if (name.equalsIgnoreCase("jvm.threads.deadlocks")) {
        return false;
      }
      return true;
    }
@{link JvmMetricsSource} collects JVM Metrics using codahale and publish to Metrics Sink.
ambari-server/src/main/java/org/apache/ambari/server/metrics/system/impl/JvmMetricsSource.java