{
  "analysis_logger": {
    "buffer_len": 0,
    "enabled": true,
    "file_path": "/data/playlist/logs/34/tracking_analysis_20260618_175049_27f1dc09.jsonl",
    "flush_interval_seconds": 15.0,
    "max_buffer_records": 32,
    "record_counts": {
      "marine_detection_debug": 161,
      "marine_restricted_zone_gate": 240,
      "scenario_debug": 401,
      "scenario_event": 9,
      "tracking_summary": 1
    },
    "started": false
  },
  "buffers": {
    "frame_buffer_len": 50,
    "frame_buffer_maxlen": 50,
    "frame_queue_maxsize": 10,
    "frame_queue_size": 0
  },
  "cctv_id": "34",
  "cgroup_memory": {
    "current_mb": 5766.812,
    "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": 104.276,
    "last_started_at": "2026-06-18T17:50:49+09:00",
    "pid": 273,
    "process": {
      "exists": false,
      "pid": 273
    },
    "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": 925.159,
      "sample_count": 161,
      "scenario_effective_fps_enabled": false,
      "target_fps": 10.0,
      "warmup_remaining_s": 195.609
    },
    "queue_clear_age_s": 3.0,
    "queue_max_age_s": 2.0,
    "queue_maxsize": 10,
    "reader_queue_enabled": false,
    "stats": {
      "analysis_frames": 161,
      "analysis_skipped": 0,
      "frames_dequeued": 0,
      "frames_queued": 0,
      "last_analysis_at": "2026-06-18T17:52:32+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": "27f1dc09",
  "last_frame_pushed_age_sec": 0.038,
  "last_frame_pushed_at": "2026-06-18T17:52:33+09:00",
  "last_frame_read_age_sec": 0.546,
  "last_frame_read_at": "2026-06-18T17:52:32+09:00",
  "mjpeg": {
    "age_sec": 0.031,
    "exists": true,
    "mtime": "2026-06-18T17:52:33.391840+09:00",
    "mtime_epoch": 1781772753.3918402,
    "path": "/data/playlist/streaming/34/mjpeg.jpg",
    "size_bytes": 87861
  },
  "monitor_url": "http://192.168.50.221:1223/mjpeg/34",
  "observed_at": "2026-06-18T17:52:33+09:00",
  "process": {
    "exists": true,
    "fd_count": 109,
    "hwm_mb": 1402.785,
    "name": "celery",
    "pid": 215,
    "rss_mb": 1400.996,
    "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": 6,
    "oldest_recorder_age_sec": 21.542,
    "recorders": [
      {
        "age_sec": 21.542,
        "frame_count": 93,
        "is_recording": true,
        "is_stopping": false,
        "pid": 1795,
        "process": {
          "exists": true,
          "fd_count": 5,
          "hwm_mb": 189.191,
          "name": "ffmpeg",
          "pid": 1795,
          "rss_mb": 189.191,
          "state": "S (sleeping)",
          "threads": 60
        },
        "remaining_frames": 7,
        "returncode": null,
        "running": true,
        "started_at": "2026-06-18T17:52:11+09:00",
        "total_frames_to_record": 100,
        "videoname": "/data/playlist/accident/34/20260618_175211_marine_restricted_zone_approach__zone:marine:20260616_073756_cctv34_marine_restricted_zone:danger__approaching_outside_roi__high__track1000012"
      },
      {
        "age_sec": 20.235,
        "frame_count": 92,
        "is_recording": true,
        "is_stopping": false,
        "pid": 1855,
        "process": {
          "exists": true,
          "fd_count": 5,
          "hwm_mb": 186.379,
          "name": "ffmpeg",
          "pid": 1855,
          "rss_mb": 186.379,
          "state": "S (sleeping)",
          "threads": 60
        },
        "remaining_frames": 8,
        "returncode": null,
        "running": true,
        "started_at": "2026-06-18T17:52:13+09:00",
        "total_frames_to_record": 100,
        "videoname": "/data/playlist/accident/34/20260618_175212_marine_restricted_zone_approach__zone:marine:20260616_073756_cctv34_marine_restricted_zone:warning__inside_warning__medium__track1000012"
      },
      {
        "age_sec": 12.551,
        "frame_count": 76,
        "is_recording": true,
        "is_stopping": false,
        "pid": 1915,
        "process": {
          "exists": true,
          "fd_count": 5,
          "hwm_mb": 189.367,
          "name": "ffmpeg",
          "pid": 1915,
          "rss_mb": 189.367,
          "state": "S (sleeping)",
          "threads": 60
        },
        "remaining_frames": 24,
        "returncode": null,
        "running": true,
        "started_at": "2026-06-18T17:52:20+09:00",
        "total_frames_to_record": 100,
        "videoname": "/data/playlist/accident/34/20260618_175220_marine_restricted_zone_approach__zone:marine:20260616_073756_cctv34_marine_restricted_zone:danger__approaching_outside_roi__high__track3"
      }
    ],
    "running_ffmpeg_count": 3,
    "running_pids": [
      1795,
      1855,
      1915
    ],
    "stopping_count": 0
  },
  "recovery_eligible": true,
  "source_url": "file:///data/playlist/uploads/260526_배테스트용_영상_live_시나리오테스트_샘플들/07/MVI_1474_VIS__preprocessed.mp4",
  "stage_metrics": {
    "counts": {
      "inference_timeouts": 0,
      "invalid_reads": 0,
      "processed_frames": 59,
      "pushed_frames": 59,
      "read_frames": 58,
      "select_timeouts": 0,
      "triton_result_errors": 0
    },
    "enabled": true,
    "fps": {
      "processed": 1.993,
      "pushed": 1.993,
      "read": 1.959
    },
    "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.56,
        "count": 59,
        "max_ms": 95.288,
        "p95_ms": 90.217
      },
      "gstreamer_push": {
        "avg_ms": 1.758,
        "count": 59,
        "max_ms": 3.442,
        "p95_ms": 3.234
      },
      "model_completion": {
        "model_count": 1,
        "models": {
          "yolo11m_640_mard_ship_17class_260423": {
            "avg_ms": 73.983,
            "count": 59,
            "max_ms": 94.536,
            "p95_ms": 90.63
          }
        },
        "truncated_count": 0
      },
      "processing_total": {
        "avg_ms": 501.789,
        "count": 59,
        "max_ms": 1286.717,
        "p95_ms": 976.143
      },
      "read_interval": {
        "avg_ms": 509.713,
        "count": 58,
        "max_ms": 1297.964,
        "p95_ms": 985.809
      },
      "triton_wait": {
        "avg_ms": 73.992,
        "count": 59,
        "max_ms": 94.545,
        "p95_ms": 90.644
      },
      "visualize": {
        "avg_ms": 29.342,
        "count": 59,
        "max_ms": 44.65,
        "p95_ms": 41.253
      }
    },
    "target_fps": 10.0,
    "target_frame_budget_ms": 100.0,
    "window_elapsed_s": 29.599,
    "window_s": 30.0
  },
  "started_at": "2026-06-18T17:50:49+09:00",
  "state": "stopped",
  "task_id": "e5eff413-0959-4f8c-983f-6dcabafb72f2",
  "trigger": "start"
}