> ## Documentation Index
> Fetch the complete documentation index at: https://konduktor-docs.yakko.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics



## OpenAPI

````yaml /openapi.json get /api/metrics
openapi: 3.1.0
info:
  title: Konduktor
  version: 0.1.0
servers:
  - url: http://localhost:8080
    description: Local instance (default)
security: []
paths:
  /api/metrics:
    get:
      tags:
        - system
      summary: Metrics
      operationId: metrics_api_metrics_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricsResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    MetricsResponse:
      properties:
        cpu:
          $ref: '#/components/schemas/CpuMetrics'
        memory:
          $ref: '#/components/schemas/MemoryMetrics'
        disk:
          $ref: '#/components/schemas/DiskMetrics'
        worktrees:
          items:
            $ref: '#/components/schemas/WorktreeUsage'
          type: array
          title: Worktrees
        active_sessions:
          items:
            $ref: '#/components/schemas/ActiveSessionInfo'
          type: array
          title: Active Sessions
        session_count:
          type: integer
          title: Session Count
        system:
          $ref: '#/components/schemas/SystemInfo'
      type: object
      required:
        - cpu
        - memory
        - disk
        - worktrees
        - active_sessions
        - session_count
        - system
      title: MetricsResponse
    CpuMetrics:
      properties:
        percent:
          type: number
          title: Percent
        load_avg_1min:
          type: number
          title: Load Avg 1Min
      type: object
      required:
        - percent
        - load_avg_1min
      title: CpuMetrics
    MemoryMetrics:
      properties:
        total_bytes:
          type: integer
          title: Total Bytes
        used_bytes:
          type: integer
          title: Used Bytes
        available_bytes:
          type: integer
          title: Available Bytes
        percent:
          type: number
          title: Percent
      type: object
      required:
        - total_bytes
        - used_bytes
        - available_bytes
        - percent
      title: MemoryMetrics
    DiskMetrics:
      properties:
        total_bytes:
          type: integer
          title: Total Bytes
        used_bytes:
          type: integer
          title: Used Bytes
        available_bytes:
          type: integer
          title: Available Bytes
        percent:
          type: number
          title: Percent
      type: object
      required:
        - total_bytes
        - used_bytes
        - available_bytes
        - percent
      title: DiskMetrics
    WorktreeUsage:
      properties:
        path:
          type: string
          title: Path
        session_id:
          type: string
          title: Session Id
        size_bytes:
          type: integer
          title: Size Bytes
      type: object
      required:
        - path
        - session_id
        - size_bytes
      title: WorktreeUsage
    ActiveSessionInfo:
      properties:
        session_id:
          type: string
          title: Session Id
        task_id:
          type: string
          title: Task Id
        task_title:
          type: string
          title: Task Title
        started_at:
          type: string
          title: Started At
        duration_seconds:
          type: number
          title: Duration Seconds
      type: object
      required:
        - session_id
        - task_id
        - task_title
        - started_at
        - duration_seconds
      title: ActiveSessionInfo
    SystemInfo:
      properties:
        uptime_seconds:
          type: number
          title: Uptime Seconds
        python_version:
          type: string
          title: Python Version
        server_start_time:
          type: string
          title: Server Start Time
      type: object
      required:
        - uptime_seconds
        - python_version
        - server_start_time
      title: SystemInfo
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````