public static ConnectionQuotaEntity ipQuotaEntity(InetAddress ip) {
        return new ConnectionQuotaEntity(CONNECTION_RATE_SENSOR_NAME + "-" + ip.getHostAddress(),
                CONNECTION_RATE_METRIC_NAME,
                TimeUnit.HOURS.toSeconds(1),
                Collections.singletonMap(IP_METRIC_TAG, ip.getHostAddress()));
    }
Class for connection quota configuration. Connection quotas can be configured at the
broker, listener or IP level.
server/src/main/java/org/apache/kafka/network/ConnectionQuotaEntity.java