Skip to main content

RUN_INSTRUMENTS

@retinue/monorepo


@retinue/monorepo / backend/src / RUN_INSTRUMENTS

Variable: RUN_INSTRUMENTS

const RUN_INSTRUMENTS: object

Defined in: backend/src/telemetry/metrics.ts:31

Type Declaration​

approvalWaitMs​

readonly approvalWaitMs: object

approvalWaitMs.answers​

readonly answers: "Are approvals the bottleneck rather than the platform?" = "Are approvals the bottleneck rather than the platform?"

approvalWaitMs.description​

readonly description: "Time a run spent waiting for a human decision." = "Time a run spent waiting for a human decision."

approvalWaitMs.kind​

readonly kind: "histogram" = "histogram"

approvalWaitMs.name​

readonly name: "agentkit_approval_wait_ms" = "agentkit_approval_wait_ms"

approvalWaitMs.unit​

readonly unit: "ms" = "ms"

claimLatencyMs​

readonly claimLatencyMs: object

claimLatencyMs.answers​

readonly answers: "How long does a user wait before anything starts happening?" = "How long does a user wait before anything starts happening?"

claimLatencyMs.description​

readonly description: "Time from enqueue to a worker claiming the run." = "Time from enqueue to a worker claiming the run."

claimLatencyMs.kind​

readonly kind: "histogram" = "histogram"

claimLatencyMs.name​

readonly name: "agentkit_claim_latency_ms" = "agentkit_claim_latency_ms"

claimLatencyMs.unit​

readonly unit: "ms" = "ms"

modelCallsTotal​

readonly modelCallsTotal: object

modelCallsTotal.answers​

readonly answers: "What is the model error rate, per model?" = "What is the model error rate, per model?"

modelCallsTotal.description​

readonly description: "Model calls, by outcome and model." = "Model calls, by outcome and model."

modelCallsTotal.kind​

readonly kind: "counter" = "counter"

modelCallsTotal.name​

readonly name: "agentkit_model_calls_total" = "agentkit_model_calls_total"

modelCallsTotal.unit​

readonly unit: "{call}" = "{call}"

modelLatencyMs​

readonly modelLatencyMs: object

modelLatencyMs.answers​

readonly answers: "Is a slow run the provider's fault or ours?" = "Is a slow run the provider's fault or ours?"

modelLatencyMs.description​

readonly description: "Duration of one model call." = "Duration of one model call."

modelLatencyMs.kind​

readonly kind: "histogram" = "histogram"

modelLatencyMs.name​

readonly name: "agentkit_model_latency_ms" = "agentkit_model_latency_ms"

modelLatencyMs.unit​

readonly unit: "ms" = "ms"

queueDepth​

readonly queueDepth: object

queueDepth.answers​

readonly answers: "Is work arriving faster than it is being processed?" = "Is work arriving faster than it is being processed?"

queueDepth.description​

readonly description: "Jobs waiting on the run queue." = "Jobs waiting on the run queue."

queueDepth.kind​

readonly kind: "gauge" = "gauge"

queueDepth.name​

readonly name: "agentkit_queue_depth" = "agentkit_queue_depth"

queueDepth.unit​

readonly unit: "{job}" = "{job}"

retriesTotal​

readonly retriesTotal: object

retriesTotal.answers​

readonly answers: "Is a provider degrading before it starts failing outright?" = "Is a provider degrading before it starts failing outright?"

retriesTotal.description​

readonly description: "Retry attempts, by reason." = "Retry attempts, by reason."

retriesTotal.kind​

readonly kind: "counter" = "counter"

retriesTotal.name​

readonly name: "agentkit_retries_total" = "agentkit_retries_total"

retriesTotal.unit​

readonly unit: "{retry}" = "{retry}"

runDurationMs​

readonly runDurationMs: object

runDurationMs.answers​

readonly answers: "Are runs getting slower?" = "Are runs getting slower?"

runDurationMs.description​

readonly description: "Wall-clock time from claim to a terminal run state." = "Wall-clock time from claim to a terminal run state."

runDurationMs.kind​

readonly kind: "histogram" = "histogram"

runDurationMs.name​

readonly name: "agentkit_run_duration_ms" = "agentkit_run_duration_ms"

runDurationMs.unit​

readonly unit: "ms" = "ms"

runsTotal​

readonly runsTotal: object

runsTotal.answers​

readonly answers: "What fraction of runs fail, and is that changing?" = "What fraction of runs fail, and is that changing?"

runsTotal.description​

readonly description: "Runs reaching a terminal state, by outcome." = "Runs reaching a terminal state, by outcome."

runsTotal.kind​

readonly kind: "counter" = "counter"

runsTotal.name​

readonly name: "agentkit_runs_total" = "agentkit_runs_total"

runsTotal.unit​

readonly unit: "{run}" = "{run}"

toolCallsTotal​

readonly toolCallsTotal: object

toolCallsTotal.answers​

readonly answers: "Which tool is failing, and how often?" = "Which tool is failing, and how often?"

toolCallsTotal.description​

readonly description: "Tool calls, by outcome and tool." = "Tool calls, by outcome and tool."

toolCallsTotal.kind​

readonly kind: "counter" = "counter"

toolCallsTotal.name​

readonly name: "agentkit_tool_calls_total" = "agentkit_tool_calls_total"

toolCallsTotal.unit​

readonly unit: "{call}" = "{call}"

toolLatencyMs​

readonly toolLatencyMs: object

toolLatencyMs.answers​

readonly answers: "Is a tool the reason runs are slow?" = "Is a tool the reason runs are slow?"

toolLatencyMs.description​

readonly description: "Duration of one tool call." = "Duration of one tool call."

toolLatencyMs.kind​

readonly kind: "histogram" = "histogram"

toolLatencyMs.name​

readonly name: "agentkit_tool_latency_ms" = "agentkit_tool_latency_ms"

toolLatencyMs.unit​

readonly unit: "ms" = "ms"