{
  "repo": "tidbcloud/serverless-metering",
  "binary": "metric-server",
  "binary_path": "cmd/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "services": [
    {
      "name": "MetricServer",
      "package": "pkg/server",
      "methods": [
        {
          "name": "run",
          "name_key": "Runtime MetricServer.run",
          "input": "Pushed metric samples and monitoring requests",
          "output": "Persisted metric data and Prometheus monitoring output"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "The binary accepts POST /metrics for ingestion and GET /metrics for process monitoring."
    ]
  }
}
