Skip to content

Metrics

The platform exposes Prometheus metrics in the text exposition format. Names start with fc_. A histogram is exposed as the usual _bucket, _sum and _count series. Counters end in _total.

Subsystem Served by
Router the router API, at <router prefix>/metrics on the API port
Dispatch scheduler the platform metrics listener, when the dispatch scheduler runs in the process
Dispatch job lifecycle the platform metrics listener
Ingestion the platform metrics listener
Secret references the platform metrics listener
Function runner the function runner’s private listener, at /metrics

The platform metrics listener is the process’s metrics server: it serves /metrics on FC_METRICS_PORT (default 9090, see Environment variables). It also serves the Go runtime collector (go_*: goroutines, GC, memory, scheduler latency) and the process collector (process_*: CPU, resident memory, open file descriptors, start time); the router’s endpoint serves both as well. The push gateway’s own series (fw_push_*, fc_push_*) come from the framework module and are not listed here.

Served by the router API, at <router prefix>/metrics on the API port.

Metric Type Labels Description
fc_circuit_breaker_calls_total counter target, outcome Cumulative breaker outcomes.
fc_circuit_breaker_open gauge target 1 when the breaker is OPEN, 0 otherwise.
fc_consumer_errors_total counter queue, type Cumulative failed broker polls, by type (poll error, recovered panic).
fc_consumer_messages_received_total counter consumer Cumulative messages received from the broker by this consumer.
fc_consumer_polls_total counter queue Cumulative broker polls by the queue’s consumer.
fc_in_pipeline_messages gauge Total in-flight messages across all pools.
fc_mediation_duration_seconds histogram pool Mediation latency in seconds.
fc_messages_processed_total counter pool, success, result Cumulative messages processed, by success and mediation result.
fc_messages_rejected_total counter pool, reason Cumulative messages the pool handed back or settled without delivering them, by reason.
fc_messages_submitted_total counter pool Cumulative messages routed to the pool.
fc_pool_active_workers gauge pool Currently active worker goroutines per pool.
fc_pool_message_groups gauge pool Distinct message groups currently holding buffered work.
fc_pool_queue_size gauge pool Messages buffered in group queues awaiting dispatch.
fc_queue_in_flight_messages gauge queue Approximate messages currently being processed by consumers.
fc_queue_messages_total counter queue, outcome Cumulative consumer ack/nack/defer outcomes.
fc_queue_pending_messages gauge queue Approximate messages waiting on the broker.
fc_rate_limit_exceeded_total counter pool Cumulative rate-limit events.
fc_router_panics_recovered_total counter Cumulative panics recovered at a router goroutine boundary (each logged with its stack).

Served by the platform metrics listener, when the dispatch scheduler runs in the process.

Metric Type Labels Description
fc_scheduler_buffer_in_use gauge Permits held: jobs between a claim and a lane finishing them.
fc_scheduler_claim_duration_seconds histogram Duration of the claim query.
fc_scheduler_claims_already_inflight_total counter Claimed rows dropped because the job was already in this process’s in-flight set (the claim excludes them, so this is never expected).
fc_scheduler_full_batch_claims_total counter Claims that filled the whole batch (a backlog deeper than one batch).
fc_scheduler_held_groups gauge Message groups the claim currently skips because it just found them held back (remembered for 5 seconds).
fc_scheduler_inflight_jobs gauge Size of the in-flight id set: jobs claimed and not yet finished by a lane.
fc_scheduler_jobs_claimed_total counter Dispatch jobs returned by the claim query.
fc_scheduler_jobs_dropped_poisoned_total counter Dispatch jobs a lane dropped unpublished to keep their message group in order; left PENDING.
fc_scheduler_jobs_published_total counter Dispatch jobs the broker accepted (a lane then marks them QUEUED).
fc_scheduler_jobs_skipped_held_total counter Dispatch jobs held back behind an earlier failed or backed-off job of their BLOCK_ON_ERROR group.
fc_scheduler_jobs_unpublished_total counter Dispatch jobs the publisher failed to publish; left PENDING to be claimed again.
fc_scheduler_jobs_withheld_doomed_total counter Claimed dispatch jobs not submitted because the claim excluded a doomed in-flight job of their group; left PENDING.
fc_scheduler_lane_publish_duration_seconds histogram lane Duration of one lane batch’s publish.
fc_scheduler_last_successful_poll_timestamp_seconds gauge Unix time of the last poll that finished without error.
fc_scheduler_mark_queued_not_updated_total counter Published dispatch jobs the QUEUED update skipped because the job had already moved past PENDING.
fc_scheduler_paused_connections gauge PAUSED connections whose own jobs (a function’s fn.dispatch) are excluded from the claim.
fc_scheduler_paused_subscriptions gauge Subscriptions whose connection is PAUSED, excluded from the claim.
fc_scheduler_pending_backlog_jobs gauge PENDING jobs in msg_dispatch_jobs (jobs waiting for the scheduler), counted up to a cap of 100,001 and sampled by the leader every 30s.
fc_scheduler_pending_oldest_age_seconds gauge Age (by created_at) of the first due PENDING job in claim order; 0 when there is none.
fc_scheduler_poll_duration_seconds histogram Duration of one scheduler poll, permits held to the jobs handed to the lanes.
fc_scheduler_poll_errors_total counter Polls that ended in an error.
fc_scheduler_stale_jobs_recovered_total counter status Stale dispatch jobs returned to PENDING by the recovery loop, by the status they were stuck in.

Served by the platform metrics listener.

Metric Type Labels Description
fc_dispatch_job_transition_refused_total counter transition Dispatch job lifecycle transitions that matched no row (job absent, or not in a status the transition may move from).

Served by the platform metrics listener.

Metric Type Labels Description
fc_ingestion_secret_fetch_total counter outcome Ingestion runtime fetches of the secrets an ingestion’s live definition binds, by outcome (success, refused, error).
fc_ingestion_unheld gauge Live polled (single-owner) ingestions no runtime has held for longer than one lease and two minutes: not running anywhere.

Served by the platform metrics listener.

Metric Type Labels Description
fc_secret_reference_errors_total counter code Secret reference resolutions that failed, by SECRET_REFERENCE_* code.
fc_secret_reference_resolve_total counter outcome Secret reference resolutions that returned a value, by outcome (hit, miss, stale).

Served by the function runner’s private listener, at /metrics.

Metric Type Labels Description
fc_fn_duration_seconds histogram address, version Function invocation duration, including runner overhead.
fc_fn_evictions_total counter Versions whose compiled code was evicted (idle or memory pressure).
fc_fn_invocations_total counter address, version, outcome Function invocations by outcome (2xx..5xx from the guest, or a runner outcome such as busy, timeout, failed).
fc_fn_memory_budget_bytes gauge Memory the runner may commit to guests.
fc_fn_memory_refused_total counter Guest memory charges refused by the budget.
fc_fn_memory_used_bytes gauge Guest linear memory currently committed.
fc_fn_stuck_calls gauge JS calls running past their deadline plus grace that the runner abandoned; the process is unhealthy at the engine’s StuckLimit.
fc_fn_trace_dropped_total counter Trace records dropped before reaching the platform (queue overflow, per-invocation cap, refused or unshippable batches).
fc_fn_trace_flush_failures_total counter Trace batches the platform did not accept.
fc_fn_trace_records_total counter kind Trace records queued for shipping, by kind (trace, http, log).