Skip to content

Capture system info (API service) - #221

Open
MichaelRipa wants to merge 3 commits into
devfrom
system_info
Open

MichaelRipa wants to merge 3 commits into
devfrom
system_info

Conversation

@MichaelRipa

Copy link
Copy Markdown
Member

Description

Added an endpoint to the API service /system_info which provides important metadata pertaining to how it was deployed. Will be useful downstream for versioning and tagging deployments.

Information includes:

  • Git info
  • Python version
  • System info
  • Package versions
  • Build / service info

Example output:

{
  "git": {
    "commit": "61cfba85c05bac1c9fccc5d0a154708a59d36754",
    "commit_short": "61cfba8",
    "branch": "system_info",
    "tag": "",
    "dirty": false,
    "commit_date": "2025-12-11T12:06:43-05:00",
    "commit_author": "Michael Ripa <MichaelRipa@users.noreply.github.com>",
    "commit_message": "capture system info"
  },
  "build": {
    "date": "2025-12-11T17:08:13.360866+00:00"
  },
  "service": {
    "name": "api",
    "container_id": "4693ab8c7785",
    "start_time": "2025-12-11T17:08:24.740000+00:00",
    "pid": 35
  },
  "system": {
    "os": "Linux",
    "os_version": "#149~20.04.1-Ubuntu SMP Wed Apr 16 08:29:56 UTC 2025",
    "platform": "Linux-5.15.0-139-generic-x86_64-with-glibc2.41",
    "architecture": "x86_64",
    "cpu_count": 24,
    "cpu_count_physical": 12,
    "total_memory_bytes": 134985248768,
    "total_memory_gb": 125.71
  },
  "runtime": {
    "python_version": "3.12.12 (main, Dec  8 2025, 23:38:42) [GCC 14.2.0]",
    "python_version_info": {
      "major": 3,
      "minor": 12,
      "micro": 12
    }
  },
  "packages": {
    "nnsight": "0.5.12",
    "ray": "2.50.0",
    "fastapi": "0.108.0",
    "uvicorn": "0.24.0",
    "redis": "7.1.0",
    "python-socketio": "5.13.0",
    "pydantic": "2.12.5",
    "torch": "2.9.1+cpu",
    "transformers": "4.57.3",
    "numpy": "2.3.5"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant