public ClickHouseClientBuilder metricRegistry(Object metricRegistry) {
        if (!Objects.equals(this.metricRegistry, metricRegistry)) {
            this.metricRegistry = metricRegistry;
            resetConfig();
        }

        return this;
    }
Sets metric registry.

@param metricRegistry metric registry, could be null
@return this builder
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClientBuilder.java