private void addDiskToStateMetrics(final Disk disk) {
    final String metricName =
        disk.getDataNode().getHostname() + "-" + disk.getDataNode().getPort() + "-" + disk.getMountPath()
            + "-ResourceState";
    Gauge<Long> diskState = () -> disk.getState() == HardwareState.AVAILABLE ? 1L : 0L;
    registry.register(MetricRegistry.name(ClusterMap.class, metricName), diskState);
    dataNodeStateList.add(diskState);
  }
Metrics for the {@link StaticClusterManager}
@param hardwareLayout The {@link HardwareLayout} associated with the {@link StaticClusterManager}
@param partitionLayout The {@link PartitionLayout} associated with the {@link StaticClusterManager}
@param registry The {@link MetricRegistry} associated with the {@link StaticClusterManager}
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapMetrics.java