{
  "repo": "pingcap/tidb-insight",
  "binary": "insight",
  "binary_path": "insight.py",
  "surface_kind": "cli_tool",
  "type": "cli_tool",
  "services": [
    {
      "name": "InsightCLI",
      "type": "cli",
      "methods": [
        {
          "name": "system",
          "name_key": "CLI insight system",
          "description": "Collect system and process metadata through the collector binary."
        },
        {
          "name": "runtime",
          "name_key": "CLI insight runtime",
          "description": "Collect perf, ftrace, vmtouch, or blktrace data."
        },
        {
          "name": "log",
          "name_key": "CLI insight log",
          "description": "Collect TiDB and system log files."
        },
        {
          "name": "config",
          "name_key": "CLI insight config",
          "description": "Collect configuration files and sysctl snapshots."
        },
        {
          "name": "tidb",
          "name_key": "CLI insight tidb",
          "description": "Collect PD or TiDB API data."
        },
        {
          "name": "metric",
          "name_key": "CLI insight metric",
          "description": "Collect Prometheus metrics or import dumped metrics."
        },
        {
          "name": "show",
          "name_key": "CLI insight show",
          "description": "Render TUI summaries from previously collected data."
        },
        {
          "name": "archive",
          "name_key": "CLI insight archive",
          "description": "Compress or extract collected data tarballs."
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "Python diagnosis CLI that collects TiDB cluster data, archives results, and renders terminal summaries from collected artifacts."
    ]
  }
}
