Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Metrics, logs and tracing

Prometheus metrics

GET /metrics on API and all-in-one processes returns Prometheus text format.

MetricTypeLabelsMeaning
tappet_executions_totalcounterstatus, modeFinished executions by final status (success, error, canceled) and mode (manual, trigger, webhook, retry, sub)
tappet_execution_duration_secondshistogramExecution wall time
tappet_node_duration_secondshistogramnode_typeNode run time by node type
tappet_queue_depthgaugeExecutions waiting to be claimed
tappet_workers_busygaugeExecutions currently running in this process
tappet_webhook_requests_totalcounterstatusWebhook requests by response status
tappet_oauth_refresh_totalcounterresultOAuth2 token refreshes by outcome
tappet_rss_bytesgaugeResident memory of the process
tappet_js_evals_totalcounterExpression and Code evaluations
tappet_spill_bytesgaugeBytes currently in the spill store

Scrape API processes directly (not through the public proxy). With the Prometheus Operator, enable the Helm chart’s serviceMonitor.

Suggested alerts

groups:
  - name: tappet
    rules:
      - alert: TappetDown
        expr: up{job="tappet"} == 0
        for: 2m
      - alert: TappetQueueGrowing
        expr: min_over_time(tappet_queue_depth[15m]) > 1000 and deriv(tappet_queue_depth[15m]) > 0
        for: 15m
        annotations:
          summary: Executions are queuing faster than workers drain them. Add workers.
      - alert: TappetExecutionErrorRate
        expr: |
          sum(rate(tappet_executions_total{status="error"}[15m]))
            / sum(rate(tappet_executions_total[15m])) > 0.1
        for: 15m
      - alert: TappetWebhook5xx
        expr: sum(rate(tappet_webhook_requests_total{status=~"5.."}[5m])) > 0
        for: 10m
        annotations:
          summary: Webhooks are being rejected (queue full or errors). Check queue depth and disk.
      - alert: TappetOAuthRefreshFailing
        expr: increase(tappet_oauth_refresh_total{result!="success"}[1h]) > 0   # adjust to the result values your version exports
        annotations:
          summary: A credential needs to be reconnected.

Logs

Tappet logs with tracing. Configure with:

VariableValues
TAPPET_LOG_FORMATtext (default, human readable) or json (one object per line)
TAPPET_LOG_LEVELA filter directive, for example info, warn,tappet_runtime=debug

Execution-related log lines carry the execution ID, workflow ID and node name as fields, so you can follow one execution across processes. Secrets are redacted before logs are written.

console.log output from Code nodes goes to the execution’s own log (visible in the execution view), not to the process log.

Tracing

Builds with the otel feature export OpenTelemetry traces over OTLP:

TAPPET_OTEL_ENDPOINT=http://otel-collector:4317
TAPPET_OTEL_SERVICE_NAME=tappet

Spans cover webhook handling, queueing, each execution, each node run, outbound HTTP requests (method, host, status, never credentials), database calls and LLM calls (with token counts).

Live execution events

The editor’s live overlay uses Server-Sent Events (/api/v1/executions/{id}/stream). You can use the same stream for your own dashboards; see HTTP API.

LLM usage

Token counts and estimated cost for every LLM call are stored with the node run, visible in the execution view and through the executions API, so you can attribute model spend to workflows.