@Override
  public void init(MetricsConfiguration configuration, MetricsSink sink) {
    this.sink = sink;
  }
Pass metrics sink to metrics source
ambari-server/src/main/java/org/apache/ambari/server/metrics/system/impl/AbstractMetricsSource.java