Skip to main content

Results And Reports

Use these calls after a benchmark job or run completes. Return ids, metric highlights, caveats, and report URLs rather than large raw payloads.

Set these environment variables for the examples:

export METRUM_API_URL="https://api.<control-plane-domain>"
export METRUM_WEBUI_URL="https://<control-plane-host-or-dns>"
export METRUM_JWT_TOKEN="<12-hour-db-minted-postgrest-jwt>"

Benchmark Results

Returns benchmark rows with model, framework, hardware, throughput, and latency.

curl -fsS "$METRUM_API_URL/v_benchmark_results?org_id=eq.$METRUM_ORG_ID&project_name=eq.deepseek-qwen15b-rtxpro6000-smoke&limit=50" \
-H "X-Org-Id: $METRUM_ORG_ID" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" | jq

Query parameters:

NameRequiredDescription
project_nameNoUse eq.<name> to filter by project name.
model_codeNoUse eq.<code> to filter by model code.
framework_codeNoUse eq.<code> to filter by framework code.
limitNoMaximum rows to return.

Telemetry Summary

Returns telemetry for either a run or a job.

curl -fsS -X POST "$METRUM_API_URL/rpc/get_telemetry_summary_for_run" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"p_run_id":1}' | jq

curl -fsS -X POST "$METRUM_API_URL/rpc/get_telemetry_summary_for_job" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"p_job_id":123}' | jq

Parameters:

RPCParameterRequiredDescription
get_telemetry_summary_for_runp_run_idYesRun id.
get_telemetry_summary_for_jobp_job_idYesJob id.

Job Outputs

Returns metrumbench-llm output metrics for a job.

curl -fsS "$METRUM_API_URL/v_metrumbench_llm_outputs?job_id=eq.123&limit=100" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" | jq

Query parameters:

NameRequiredDescription
job_idNoUse eq.<id> to filter by job.
limitNoMaximum rows to return.

Run Cost Summary

Returns cost summaries for recent runs.

curl -fsS "$METRUM_API_URL/v_run_cost_summary?limit=50" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" | jq

Query parameters:

NameRequiredDescription
limitNoMaximum rows to return.

Reports

Fetch report output and downloadable artifacts from WebUI.

curl -fsS -X POST "$METRUM_WEBUI_URL/api/ai-eval" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"run_id":1}' | jq

curl -fsS -OJ "$METRUM_WEBUI_URL/api/run-report/1" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN"

curl -fsS -OJ "$METRUM_WEBUI_URL/api/project-run-report/1" \
-H "Authorization: Bearer $METRUM_JWT_TOKEN"

Report URLs:

URLDescription
/api/benchmark-report/:runIdBenchmark run HTML report.
/api/benchmark-report/:runId?ai=1Benchmark run HTML report with AI assistance.
/api/run-report/:runIdBenchmark run spreadsheet export.
/api/project-report/:projectIdProject-level HTML report.
/api/project-report/:projectId?ai=1Project-level HTML report with AI assistance.
/api/project-run-report/:projectIdProject-level spreadsheet export.