Answer: Each runner serves Prometheus metrics at `GET /metrics` on the same port as `/healthz`, and the orchestrator serves its own series at `GET /metrics` on the same port as its `/healthz`. For alerts, the text recommends alerting when `claude_code_self_hosted_runner_last_poll_age_seconds` is over 60, on `rate(...[5m]) > 0` for poll errors, and when `claude_code_self_hosted_orchestrator_queue_circuit_broken_sessions` is above zero. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts Revision: 1 Digest: sha256:292f9505a88398bc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:43Z Last changed: 2026-11-13T03:05:43Z Last verified: 2026-11-20T12:25:06Z Next check: 2026-11-21T12:25:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of Runner metrics endpoint | GET /metrics | | [1] | 2026-11-20 Orchestrator metrics endpoint | GET /metrics | | [1] | 2026-11-20 Runner last poll age alert threshold | 60 | seconds | [1] | 2026-11-20 Runner poll errors alert | rate(...[5m]) > 0 | | [1] | 2026-11-20 Orchestrator circuit broken alert | above zero | | [1] | 2026-11-20 Orchestrator last poll age alert | 90 seconds | seconds | [1] | 2026-11-20 Sources: [1] Anthropic. "Self-hosted environments reference". https://code.claude.com/docs/en/self-hosted-environments-reference.md Role: primary. Accessed: 2026-11-20T12:25:06Z Quote: "Each runner serves Prometheus metrics at `GET /metrics` on the same port as `/healthz`." (Supports: Runner metrics endpoint) Quote: "The orchestrator serves its own series at `GET /metrics` on the same port as its `/healthz`:" (Supports: Orchestrator metrics endpoint) Quote: "Seconds since the last successful poll. Alert if over 60." (Supports: Runner last poll age alert threshold) Quote: "All five series are present from process start; alert on `rate(...[5m]) > 0`." (Supports: Runner poll errors alert) Quote: "The count can stay above zero after you fix the cause. Alert if above zero." (Supports: Orchestrator circuit broken alert) Quote: "alert above `--hook-timeout` plus a margin, around 90 seconds at defaults, rather than a flat 60." (Supports: Orchestrator last poll age alert) Published: 2026-11-20T03:01:11Z Snapshot SHA-256: 3f98bfb29bfce79fa7172ed86e739d38957dbe6607a57928e83e5c9c0f6b0073 (captured 2026-11-20T12:25:03Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:06Z Last attempt: 2026-11-20T12:25:06Z Notes and limitations: Extracted automatically from a single official source (section "Prometheus metrics"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-runner-cli-flags What CLI flags does the Claude Code self-hosted runner support, including the session startup timeout and auto mode rule lists? https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-setup-runners How do I set up a self-hosted environment and deploy runners in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/server-managed-settings-limitations What are the current limitations of server-managed settings in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-environment-prerequisites What are the prerequisites for setting up a self-hosted environment in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-limitations What are the limitations of Claude Code self-hosted environments? https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-orchestrator-cli-flags What CLI flags and SCM connector options does the Claude Code self-hosted orchestrator support? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:43Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What Prometheus metrics and health endpoint does Claude Code expose for self-hosted environments, and how do I set up alerts? Revision 1, last verified 2026-11-20T12:25:06Z. https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts (accessed 2026-11-21T10:06:17Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_self_hosted_prometheus_metrics_alerts_r1, title = {What Prometheus metrics and health endpoint does Claude Code expose for self-hosted environments, and how do I set up alerts?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts}}, note = {Revision 1; digest sha256:292f9505a88398bc; last verified 2026-11-20T12:25:06Z; accessed 2026-11-21T10:06:17Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/self-hosted-prometheus-metrics-alerts