{
  "repo": "tidbcloud/metering",
  "binary": "instancemetering",
  "binary_path": "cmd/instancemetering/main.go",
  "surface_kind": "worker_service",
  "type": "worker_service",
  "services": [
    {
      "name": "InstanceMetering",
      "package": "github.com/tidbcloud/metering/cmd/instancemetering",
      "methods": [
        {
          "name": "main",
          "name_key": "Runtime InstanceMetering.main",
          "input": "serviceconfig path flag",
          "output": "scheduled instance metering worker with shared HTTP health and metrics endpoints",
          "type": "worker"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "cmd/instancemetering/main.go schedules cluster meta, billing, reporting, and cleanup tasks before booting the shared HTTP API.",
      "The process stays resident as a worker service."
    ]
  }
}
