{
  "analysis_logger": {
    "buffer_len": 0,
    "enabled": true,
    "file_path": "/data/playlist/logs/41/tracking_analysis_20260618_175423_fe8d75b8.jsonl",
    "flush_interval_seconds": 15.0,
    "max_buffer_records": 32,
    "record_counts": {
      "marine_detection_debug": 200,
      "marine_restricted_zone_gate": 138,
      "scenario_debug": 338,
      "scenario_event": 10,
      "tracking_summary": 1
    },
    "started": false
  },
  "buffers": {
    "frame_buffer_len": 50,
    "frame_buffer_maxlen": 50,
    "frame_queue_maxsize": 10,
    "frame_queue_size": 0
  },
  "cctv_id": "41",
  "cgroup_memory": {
    "current_mb": 9087.477,
    "limit_mb": null
  },
  "ffmpeg": {
    "error_count": 0,
    "h264_decode_error_count": 0,
    "h264_decode_error_count_per_hour": 0,
    "input_options": [],
    "last_error_at": "",
    "last_error_summary": "",
    "last_exit_at": "",
    "last_returncode": null,
    "last_stable_duration_sec": 108.486,
    "last_started_at": "2026-06-18T17:54:23+09:00",
    "pid": 3016,
    "process": {
      "exists": false,
      "pid": 3016
    },
    "restart_count": 0,
    "restart_count_per_hour": 0,
    "rtsp_timeout_count": 0,
    "rtsp_timeout_count_per_hour": 0,
    "rtsp_tolerant_mode": false,
    "running": false,
    "start_count": 1
  },
  "frame_flow": {
    "analysis": {
      "adaptive_enabled": false,
      "analysis_cap_enabled": false,
      "effective_analysis_fps": 10.0,
      "enabled": false,
      "last_decision": "initial",
      "processing_p95_ms": 672.788,
      "sample_count": 216,
      "scenario_effective_fps_enabled": false,
      "target_fps": 10.0,
      "warmup_remaining_s": 191.481
    },
    "queue_clear_age_s": 3.0,
    "queue_max_age_s": 2.0,
    "queue_maxsize": 10,
    "reader_queue_enabled": false,
    "stats": {
      "analysis_frames": 216,
      "analysis_skipped": 0,
      "frames_dequeued": 0,
      "frames_queued": 0,
      "last_analysis_at": "2026-06-18T17:56:11+09:00",
      "last_queue_age_ms": null,
      "last_skip_at": "",
      "max_queue_age_ms": 0.0,
      "queue_cleared": 0,
      "queue_dropped": 0
    }
  },
  "health": {
    "criticals": [
      "ffmpeg_not_running"
    ],
    "level": "critical",
    "thresholds": {
      "ffmpeg_restart_count_per_hour": {
        "critical": 6,
        "warning": 3
      },
      "h264_decode_error_count_per_hour": {
        "critical": 50,
        "warning": 10
      },
      "last_frame_pushed_age_sec": {
        "critical": 30,
        "warning": 10
      },
      "last_frame_read_age_sec": {
        "critical": 30,
        "warning": 10
      },
      "last_stable_duration_sec": {
        "critical_below": 180,
        "warning_below": 600
      },
      "mjpeg_age_sec": {
        "critical": 30,
        "warning": 10
      },
      "rtsp_timeout_count_per_hour": {
        "critical": 30,
        "warning": 10
      }
    },
    "warnings": []
  },
  "instance_id": "fe8d75b8",
  "last_frame_pushed_age_sec": 0.095,
  "last_frame_pushed_at": "2026-06-18T17:56:11+09:00",
  "last_frame_read_age_sec": 0.481,
  "last_frame_read_at": "2026-06-18T17:56:11+09:00",
  "mjpeg": {
    "age_sec": 0.087,
    "exists": true,
    "mtime": "2026-06-18T17:56:11.691656+09:00",
    "mtime_epoch": 1781772971.691656,
    "path": "/data/playlist/streaming/41/mjpeg.jpg",
    "size_bytes": 112713
  },
  "monitor_url": "http://192.168.50.221:1223/mjpeg/41",
  "observed_at": "2026-06-18T17:56:11+09:00",
  "process": {
    "exists": true,
    "fd_count": 113,
    "hwm_mb": 1618.246,
    "name": "celery",
    "pid": 217,
    "rss_mb": 1220.074,
    "state": "R (running)",
    "threads": 44
  },
  "reason_codes": [
    "ffmpeg_not_running"
  ],
  "recommended_action": "channel_restart_recommended",
  "recorder": {
    "active_count": 3,
    "cooldown_sec": 100,
    "last_event_key_count": 7,
    "oldest_recorder_age_sec": 5.651,
    "recorders": [
      {
        "age_sec": 5.651,
        "frame_count": 61,
        "is_recording": true,
        "is_stopping": false,
        "pid": 3684,
        "process": {
          "exists": true,
          "fd_count": 5,
          "hwm_mb": 186.645,
          "name": "ffmpeg",
          "pid": 3684,
          "rss_mb": 186.645,
          "state": "S (sleeping)",
          "threads": 60
        },
        "remaining_frames": 39,
        "returncode": null,
        "running": true,
        "started_at": "2026-06-18T17:56:06+09:00",
        "total_frames_to_record": 100,
        "videoname": "/data/playlist/accident/41/20260618_175605_marine_restricted_zone_approach__zone:marine:20260618_081248_cctv41_marine_restricted_zone:warning__approaching_outside_roi__medium__track19"
      },
      {
        "age_sec": 3.917,
        "frame_count": 58,
        "is_recording": true,
        "is_stopping": false,
        "pid": 3744,
        "process": {
          "exists": true,
          "fd_count": 5,
          "hwm_mb": 186.977,
          "name": "ffmpeg",
          "pid": 3744,
          "rss_mb": 186.977,
          "state": "S (sleeping)",
          "threads": 60
        },
        "remaining_frames": 42,
        "returncode": null,
        "running": true,
        "started_at": "2026-06-18T17:56:07+09:00",
        "total_frames_to_record": 100,
        "videoname": "/data/playlist/accident/41/20260618_175607_marine_restricted_zone_approach__zone:marine:20260618_081248_cctv41_marine_restricted_zone:warning__approaching_outside_roi__medium__track1000010"
      },
      {
        "age_sec": 1.121,
        "frame_count": 52,
        "is_recording": true,
        "is_stopping": false,
        "pid": 3804,
        "process": {
          "exists": true,
          "fd_count": 5,
          "hwm_mb": 187.379,
          "name": "ffmpeg",
          "pid": 3804,
          "rss_mb": 187.379,
          "state": "S (sleeping)",
          "threads": 60
        },
        "remaining_frames": 48,
        "returncode": null,
        "running": true,
        "started_at": "2026-06-18T17:56:10+09:00",
        "total_frames_to_record": 100,
        "videoname": "/data/playlist/accident/41/20260618_175610_marine_restricted_zone_approach__zone:marine:20260618_081248_cctv41_marine_restricted_zone:warning__inside_warning__medium__track1000010"
      }
    ],
    "running_ffmpeg_count": 3,
    "running_pids": [
      3684,
      3744,
      3804
    ],
    "stopping_count": 0
  },
  "recovery_eligible": true,
  "source_url": "file:///data/playlist/uploads/260526_배테스트용_영상_live_시나리오테스트_샘플들/13/MVI_1587_VIS__preprocessed.mp4",
  "stage_metrics": {
    "counts": {
      "inference_timeouts": 0,
      "invalid_reads": 0,
      "processed_frames": 66,
      "pushed_frames": 66,
      "read_frames": 65,
      "select_timeouts": 0,
      "triton_result_errors": 0
    },
    "enabled": true,
    "fps": {
      "processed": 2.223,
      "pushed": 2.223,
      "read": 2.189
    },
    "hints": [
      "read_fps_below_target",
      "processed_fps_below_target",
      "push_fps_below_target",
      "frame_processing_p95_over_budget",
      "frame_processing_p95_backlog_risk",
      "triton_wait_p95_dominant"
    ],
    "latency_ms": {
      "analyze": {
        "avg_ms": 52.841,
        "count": 66,
        "max_ms": 85.966,
        "p95_ms": 77.82
      },
      "gstreamer_push": {
        "avg_ms": 1.861,
        "count": 66,
        "max_ms": 4.962,
        "p95_ms": 2.63
      },
      "model_completion": {
        "model_count": 1,
        "models": {
          "yolo11m_640_mard_ship_17class_260423": {
            "avg_ms": 78.098,
            "count": 66,
            "max_ms": 93.247,
            "p95_ms": 89.24
          }
        },
        "truncated_count": 0
      },
      "processing_total": {
        "avg_ms": 447.028,
        "count": 66,
        "max_ms": 965.314,
        "p95_ms": 511.732
      },
      "read_interval": {
        "avg_ms": 456.51,
        "count": 65,
        "max_ms": 972.018,
        "p95_ms": 519.249
      },
      "triton_wait": {
        "avg_ms": 78.107,
        "count": 66,
        "max_ms": 93.258,
        "p95_ms": 89.249
      },
      "visualize": {
        "avg_ms": 30.074,
        "count": 66,
        "max_ms": 42.224,
        "p95_ms": 38.363
      }
    },
    "target_fps": 10.0,
    "target_frame_budget_ms": 100.0,
    "window_elapsed_s": 29.696,
    "window_s": 30.0
  },
  "started_at": "2026-06-18T17:54:23+09:00",
  "state": "stopped",
  "task_id": "70ec73b2-9ae3-4070-aac9-d7994277360a",
  "trigger": "start"
}