public void unregisterMetrics() {
            for (MetricName metricName : registeredMetricNames) {
                metrics.removeMetric(metricName);
            }
            for (String name : sensorsName) {
                metrics.removeSensor(name);
            }
            sensorsName.clear();
        }
Computes the SubscriptionId as a unique identifier for a client instance's subscription set,
the id is generated by calculating a CRC32C of the configured metrics subscriptions including
the PushIntervalMs, XORed with the ClientInstanceId.
server/src/main/java/org/apache/kafka/server/ClientMetricsManager.java