RUN_INSTRUMENTS
@forge/monorepo / backend/src / RUN_INSTRUMENTS
Variable: RUN_INSTRUMENTS
constRUN_INSTRUMENTS:object
Defined in: backend/src/telemetry/metrics.ts:31
Type Declaration
approvalWaitMs
readonlyapprovalWaitMs:object
approvalWaitMs.answers
readonlyanswers:"Are approvals the bottleneck rather than the platform?"="Are approvals the bottleneck rather than the platform?"
approvalWaitMs.description
readonlydescription:"Time a run spent waiting for a human decision."="Time a run spent waiting for a human decision."
approvalWaitMs.kind
readonlykind:"histogram"="histogram"
approvalWaitMs.name
readonlyname:"agentkit_approval_wait_ms"="agentkit_approval_wait_ms"
approvalWaitMs.unit
readonlyunit:"ms"="ms"
claimLatencyMs
readonlyclaimLatencyMs:object
claimLatencyMs.answers
readonlyanswers:"How long does a user wait before anything starts happening?"="How long does a user wait before anything starts happening?"
claimLatencyMs.description
readonlydescription:"Time from enqueue to a worker claiming the run."="Time from enqueue to a worker claiming the run."
claimLatencyMs.kind
readonlykind:"histogram"="histogram"
claimLatencyMs.name
readonlyname:"agentkit_claim_latency_ms"="agentkit_claim_latency_ms"
claimLatencyMs.unit
readonlyunit:"ms"="ms"
modelCallsTotal
readonlymodelCallsTotal:object
modelCallsTotal.answers
readonlyanswers:"What is the model error rate, per model?"="What is the model error rate, per model?"
modelCallsTotal.description
readonlydescription:"Model calls, by outcome and model."="Model calls, by outcome and model."
modelCallsTotal.kind
readonlykind:"counter"="counter"
modelCallsTotal.name
readonlyname:"agentkit_model_calls_total"="agentkit_model_calls_total"
modelCallsTotal.unit
readonlyunit:"{call}"="{call}"
modelLatencyMs
readonlymodelLatencyMs:object
modelLatencyMs.answers
readonlyanswers:"Is a slow run the provider's fault or ours?"="Is a slow run the provider's fault or ours?"
modelLatencyMs.description
readonlydescription:"Duration of one model call."="Duration of one model call."
modelLatencyMs.kind
readonlykind:"histogram"="histogram"
modelLatencyMs.name
readonlyname:"agentkit_model_latency_ms"="agentkit_model_latency_ms"
modelLatencyMs.unit
readonlyunit:"ms"="ms"
queueDepth
readonlyqueueDepth:object
queueDepth.answers
readonlyanswers:"Is work arriving faster than it is being processed?"="Is work arriving faster than it is being processed?"
queueDepth.description
readonlydescription:"Jobs waiting on the run queue."="Jobs waiting on the run queue."
queueDepth.kind
readonlykind:"gauge"="gauge"
queueDepth.name
readonlyname:"agentkit_queue_depth"="agentkit_queue_depth"
queueDepth.unit
readonlyunit:"{job}"="{job}"
retriesTotal
readonlyretriesTotal:object
retriesTotal.answers
readonlyanswers:"Is a provider degrading before it starts failing outright?"="Is a provider degrading before it starts failing outright?"
retriesTotal.description
readonlydescription:"Retry attempts, by reason."="Retry attempts, by reason."
retriesTotal.kind
readonlykind:"counter"="counter"
retriesTotal.name
readonlyname:"agentkit_retries_total"="agentkit_retries_total"
retriesTotal.unit
readonlyunit:"{retry}"="{retry}"
runDurationMs
readonlyrunDurationMs:object
runDurationMs.answers
readonlyanswers:"Are runs getting slower?"="Are runs getting slower?"
runDurationMs.description
readonlydescription:"Wall-clock time from claim to a terminal run state."="Wall-clock time from claim to a terminal run state."
runDurationMs.kind
readonlykind:"histogram"="histogram"
runDurationMs.name
readonlyname:"agentkit_run_duration_ms"="agentkit_run_duration_ms"
runDurationMs.unit
readonlyunit:"ms"="ms"
runsTotal
readonlyrunsTotal:object
runsTotal.answers
readonlyanswers:"What fraction of runs fail, and is that changing?"="What fraction of runs fail, and is that changing?"
runsTotal.description
readonlydescription:"Runs reaching a terminal state, by outcome."="Runs reaching a terminal state, by outcome."
runsTotal.kind
readonlykind:"counter"="counter"
runsTotal.name
readonlyname:"agentkit_runs_total"="agentkit_runs_total"
runsTotal.unit
readonlyunit:"{run}"="{run}"
toolCallsTotal
readonlytoolCallsTotal:object
toolCallsTotal.answers
readonlyanswers:"Which tool is failing, and how often?"="Which tool is failing, and how often?"
toolCallsTotal.description
readonlydescription:"Tool calls, by outcome and tool."="Tool calls, by outcome and tool."
toolCallsTotal.kind
readonlykind:"counter"="counter"
toolCallsTotal.name
readonlyname:"agentkit_tool_calls_total"="agentkit_tool_calls_total"
toolCallsTotal.unit
readonlyunit:"{call}"="{call}"
toolLatencyMs
readonlytoolLatencyMs:object
toolLatencyMs.answers
readonlyanswers:"Is a tool the reason runs are slow?"="Is a tool the reason runs are slow?"
toolLatencyMs.description
readonlydescription:"Duration of one tool call."="Duration of one tool call."
toolLatencyMs.kind
readonlykind:"histogram"="histogram"
toolLatencyMs.name
readonlyname:"agentkit_tool_latency_ms"="agentkit_tool_latency_ms"
toolLatencyMs.unit
readonlyunit:"ms"="ms"