hunk.code_window:         if self._last_logs:
               return self._last_logs
           def _get_logs():
               job_driver_log, ray_error_log = self._get_ray_logs()
               assert job_driver_log or ray_error_log, "No logs fetched"
               if job_driver_log:
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit:         # Skip loading logs when the job ran for too long and collected too much logs.
           if self._duration is not None and self._duration > 4 * 3_600:
               return None
  
hunk.file_path: release/ray_release/job_manager/anyscale_job_manager.py
hunk.type: add
file: # my global config
  global:
    scrape_interval: 10s # Set the scrape interval to every 10 seconds. Default is every 1 minute.
    evaluation_interval: 10s # Evaluate rules every 10 seconds. The default is every 1 minute.
    # scrape_timeout is set to the global default (10s).
  
  scrape_configs:
  # Scrape from each ray node as defined in the service_discovery.json provided by ray.
  - job_name: 'ray'
    file_sd_configs:
    - files:
      - '/tmp/ray/prom_metrics_service_discovery.json'
  