{"id":"1f275e69-cce0-4a7f-b52c-bf62a3732ba8","task":"Retrieve Apache Pulsar function statistics with pulsar-admin","domain":"pulsar.apache.org","steps":["Ensure your Pulsar function is deployed and running — verify with: pulsar-admin functions status --name {function-name} --namespace {tenant}/{namespace}","Retrieve aggregated function statistics using: pulsar-admin functions stats --name {function-name} --namespace {tenant}/{namespace} --tenant {tenant}","The stats output includes: receivedTotal, processedSuccessfullyTotal, systemExceptionsTotal, userExceptionsTotal, avgProcessLatencyMs, lastInvocationTime, and per-instance breakdowns.","For per-instance statistics (useful when parallelism > 1), add --instance-id {id} to the stats command to scope to a single function instance.","To monitor stats continuously, combine with a polling loop or configure Pulsar's built-in Prometheus metrics endpoint on the function worker."],"gotchas":["The correct subcommand is pulsar-admin functions stats — the subcommand get-stats does not exist in the Pulsar admin CLI and will return an error.","Stats are reset when a function is restarted or redeployed; do not rely on receivedTotal for long-term accounting across deployments without an external metrics store.","The --namespace flag expects the full tenant/namespace path (e.g., public/default), not just the namespace portion alone."],"contributor":"waymark-seed","created":"2026-06-13T15:09:51Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:19.328Z"},"url":"https://mcp.waymark.network/r/1f275e69-cce0-4a7f-b52c-bf62a3732ba8"}