{
  "repo": "pingcap/tidb-dashboard",
  "binary": "tidb-dashboard",
  "binary_path": "cmd/tidb-dashboard/main.go",
  "dependencies": {
    "HTTP GET /dashboard/": {
      "description": "Serves the embedded dashboard single-page application under the configured public path prefix.",
      "infrastructure": {
        "embedded_ui_assets": {
          "conditions": [
            "UI request hits /dashboard/"
          ],
          "operations": [
            {
              "operation": "Serve dashboard UI assets",
              "implementation": "cmd/tidb-dashboard/main.go"
            }
          ]
        }
      },
      "services": []
    },
    "Runtime TiDBDashboardAPI.ProxyRequests": {
      "description": "Dispatches dashboard API requests into apiserver modules backed by PD, TiDB, Prometheus, and component status endpoints.",
      "infrastructure": {
        "pd_http_api": {
          "conditions": [
            "Topology, config, key-visual, and cluster metadata APIs are queried"
          ],
          "operations": [
            {
              "operation": "Call PD HTTP and etcd-backed topology endpoints",
              "implementation": "pkg/pd/client.go"
            }
          ]
        },
        "tidb_sql": {
          "conditions": [
            "SQL editor, diagnose, statement, or cluster inspection APIs are queried"
          ],
          "operations": [
            {
              "operation": "Connect to TiDB/MySQL with optional TLS",
              "implementation": "pkg/apiserver/utils/tidb_conn.go"
            }
          ]
        },
        "prometheus_http_api": {
          "conditions": [
            "Metrics APIs are queried or a custom Prometheus address is configured"
          ],
          "operations": [
            {
              "operation": "Query Prometheus range API and resolve Prometheus address",
              "implementation": "pkg/apiserver/metrics/router.go"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /dashboard/api/swagger/": {
      "description": "Serves the generated Swagger UI and OpenAPI metadata for dashboard APIs.",
      "infrastructure": {
        "local_swagger_assets": {
          "conditions": [
            "Swagger route is requested"
          ],
          "operations": [
            {
              "operation": "Serve generated Swagger assets",
              "implementation": "cmd/tidb-dashboard/main.go"
            }
          ]
        }
      },
      "services": []
    },
    "HTTP GET /debug/pprof/*": {
      "description": "Exposes Go runtime profiling handlers registered on the default serve mux.",
      "infrastructure": {
        "go_runtime_profiler": {
          "conditions": [
            "Runtime profiling endpoints are requested"
          ],
          "operations": [
            {
              "operation": "Serve pprof handlers",
              "implementation": "cmd/tidb-dashboard/main.go"
            }
          ]
        }
      },
      "services": []
    }
  }
}
