docstr: Creates the prometheus configurations that are by default provided by Ray.
docstr_tok: ["Creates","the","prometheus","configurations","that","are","by","default","provided","by","Ray","."]
code: def _create_default_prometheus_configs(self):
      """
      Creates the prometheus configurations that are by default provided by Ray.
      """
      prometheus_config_output_path = os.path.join(
          self._metrics_root, "prometheus", "prometheus.yml"
      )
  
      # Copy default prometheus configurations
      if os.path.exists(prometheus_config_output_path):
          os.remove(prometheus_config_output_path)
      os.makedirs(
          os.path.dirname(prometheus_config_output_path), exist_ok=True
      )
      shutil.copy(
          PROMETHEUS_CONFIG_INPUT_PATH, prometheus_config_output_path
      )
  
imports: import asyncio
  import aiohttp
  import logging
  import os
  import shutil
  from typing import Optional
  import psutil
  from urllib.parse import quote
  from ray.dashboard.modules.metrics.grafana_dashboard_factory import generate_default_grafana_dashboard, generate_serve_grafana_dashboard, generate_serve_deployment_grafana_dashboard, generate_data_grafana_dashboard
  from ray.dashboard.modules.metrics.grafana_datasource_template import GRAFANA_DATASOURCE_TEMPLATE
  from ray.dashboard.modules.metrics.grafana_dashboard_provisioning_template import DASHBOARD_PROVISIONING_TEMPLATE
  import ray.dashboard.optional_utils
  import ray.dashboard.utils
  from ray.dashboard.consts import AVAILABLE_COMPONENT_NAMES_FOR_METRICS
label_desc: Use image node_id 4 for calling the MetricsHead obj's underlying member method code with example usage: obj._create_default_prometheus_configs() without return types