class OverriddenMetricsHostProvider implements MetricHostProvider {

  @Override
  public Optional<String> getExternalHostName(String clusterName, String componentName) {
    return getOverriddenHost(componentName).map(host -> replaceVariables(clusterName, host));
  }

  public  OverriddenMetricsHostProvider(Map<String, String> overriddenHosts, MetricHostProvider metricHostProvider, ConfigHelper configHelper);

}