class_docstr: Class for monitoring disk stats.
class_docstr_tok: ["Class","for","monitoring","disk","stats","."]
code: def collect_metrics(self):
      # Get disk usage metrics.
      disk_usage = psutil.disk_usage(os.sep)
      self._metrics["disk_usage_percentage"].append(disk_usage.percent)
      self._metrics["disk_usage_megabytes"].append(
          disk_usage.used / 1e6
      )
      self._metrics["disk_available_megabytes"].append(
          disk_usage.free / 1e6
      )
  
imports: import os
  import psutil
  from mlflow.system_metrics.metrics.base_metrics_monitor import BaseMetricsMonitor
label_desc: Use image node_id 1 for calling the DiskMonitor obj's underlying member method code with example usage: obj.collect_metrics() without return types