{
  "repo": "tidbcloud/metrics-server",
  "scan_version": "4.4",
  "scan_status": "completed",
  "scan_at": "2026-03-25T05:20:21.573394",
  "file_count": 403,
  "language": "Go",
  "repo_kind": "multi_service",
  "type": "multi_service",
  "binaries": [
    {
      "name": "db_migration",
      "path": "cmd/db_migration/main.go",
      "language": "Go",
      "interfaces": {
        "cli": {
          "framework": "stdlib"
        },
        "http_api": {
          "source": "cmd",
          "health": true
        }
      },
      "role": "worker"
    },
    {
      "name": "push_pipeline",
      "path": "cmd/push_pipeline/main.go",
      "language": "Go",
      "interfaces": {
        "cli": {
          "framework": "cobra"
        },
        "http_api": {
          "source": "cmd",
          "port": 8080,
          "metrics": true
        }
      },
      "role": "primary_service"
    },
    {
      "name": "central_metrics",
      "path": "cmd/central_metrics/main.go",
      "language": "Go",
      "interfaces": {
        "cli": {
          "framework": "stdlib"
        },
        "http_api": {
          "source": "cmd",
          "metrics": true,
          "health": true
        },
        "grpc": {
          "source": "cmd",
          "mode": "server",
          "services": "ClusterService,IntegrationService,UserAlertService"
        }
      },
      "role": "primary_service"
    },
    {
      "name": "scrape_gateway",
      "path": "cmd/scrape_gateway/main.go",
      "language": "Go",
      "interfaces": {
        "cli": {
          "framework": "stdlib"
        },
        "http_api": {
          "source": "cmd",
          "metrics": true,
          "health": true
        }
      },
      "role": "primary_service"
    }
  ],
  "summary": {
    "total_binaries": 4,
    "has_cli": true,
    "has_http": true,
    "has_grpc": true,
    "binary_names": [
      "db_migration",
      "push_pipeline",
      "central_metrics",
      "scrape_gateway"
    ],
    "interfaces": [
      "cli",
      "grpc",
      "http_api"
    ],
    "build_manifests": [
      "dockerfile",
      "makefile"
    ]
  }
}
