Runbook Control Plane APIs
Private Stack Exposure
Remote benchmark workers must reach the Metrum Insights control plane over a
public URL. When you run a private or local stack, expose PostgREST before
launch and use the public HTTPS URL for METRUM_PUBLIC_API_URL,
INSIGHTS_API_URL, and INSIGHTS_CONTROL_PLANE_URL:
cloudflared tunnel --url http://localhost:${POSTGREST_PORT:-3000}
export METRUM_PUBLIC_API_URL="https://<cloudflared-host>.trycloudflare.com"
export INSIGHTS_API_URL="$METRUM_PUBLIC_API_URL"
export INSIGHTS_CONTROL_PLANE_URL="$METRUM_PUBLIC_API_URL"
curl -fsS "$METRUM_PUBLIC_API_URL/" >/dev/null
Do not give a remote worker localhost, 127.0.0.1, host.docker.internal,
or a private-only DNS name. Keep the tunnel alive through onboarding, polling,
result upload, and teardown; expose any private package/WebUI endpoint through
a public URL too when the worker downloads artifacts from that stack.
The pages in this section document the HTTP API surface used by supported runbooks. They intentionally show PostgREST and WebUI calls directly, not container-local helper commands.
Start with the model and hardware target, then choose a provider subsection inside that target runbook. Provider-only pages are appendices for inspection and teardown, not primary benchmark launch instructions.
See Model And Hardware Runbooks for the maintained target matrix and operator rules.
Project Lifecycle
POST /rpc/get_current_user_contextPOST /rpc/list_projectsPOST /rpc/create_projectGET /v_project_runs_with_status
See Project Lifecycle for parameters and examples. See End To End Benchmark API Example for the complete ordered sequence.
Catalog And Scenario Setup
GET /ai_modelsGET /frameworksGET /framework_versionsPOST /rpc/create_workloadPOST /rpc/create_scenarioPOST /rpc/list_workloadsPOST /rpc/list_scenarios
See metrumbench-llm Workload And Scenario for parameters and examples.
Hardware Onboarding
POST /rpc/create_server_configPOST /rpc/create_server_config_gpuPOST /rpc/create_server_config_instancePOST /rpc/list_server_config_instancesPOST /api/onboarding/bootstrapPOST /rpc/validate_server_readinessGET /v_server_current_status
See Hardware Onboarding for parameters and examples.
Cloud Benchmark Execution
POST /api/cloud/onboardPOST /rpc/execute_scenarioPOST /rpc/get_job_statusPOST /rpc/list_jobs
See Cloud Benchmark Execution for parameters and examples.
Results And Reports
GET /v_benchmark_resultsPOST /rpc/get_telemetry_summary_for_jobPOST /rpc/get_telemetry_summary_for_runGET /v_metrumbench_llm_outputsGET /v_run_cost_summaryPOST /api/ai-evalGET /api/benchmark-report/:runIdGET /api/run-report/:runIdGET /api/project-report/:projectIdGET /api/project-run-report/:projectId
See Results And Reports for parameters and examples.
KYAI
POST /rpc/create_kyai_generation_runPOST /rpc/get_kyai_generation_runGET /v_kyai_generation_outputsPOST /rpc/create_kyai_judge_runPOST /rpc/get_kyai_judge_runGET /kyai_results
See KYAI Evaluation for parameters and examples.
Document KYAI endpoints only for the generation/evaluation runbook flow. Avoid publishing raw KYAI table CRUD pages unless a runbook calls those tables directly.