Skip to content

docs: document /ready /status /metrics and Kubernetes probes (COW-983)#72

Merged
lgahdl merged 3 commits into
developfrom
luizhatem/cow-983-docs-document-all-health-readiness-status-and-metrics
May 29, 2026
Merged

docs: document /ready /status /metrics and Kubernetes probes (COW-983)#72
lgahdl merged 3 commits into
developfrom
luizhatem/cow-983-docs-document-all-health-readiness-status-and-metrics

Conversation

@lgahdl
Copy link
Copy Markdown
Contributor

@lgahdl lgahdl commented May 28, 2026

Summary

  • Add /ready, /status, and /metrics to the endpoints table in docs/api-reference.md
  • Document Kubernetes liveness (/healthz) and readiness (/ready) probe configuration with example YAML
  • Explain /status response shape and what the fields mean (checkpoint, latest, ready)
  • Clarify that /status showing block lag during backfill is normal — not broken

Addresses client feedback: "/status and /metrics endpoints are not documented. There are liveness probes but not a readiness one."

Related Issues

COW-983

🤖 Generated with Claude Code

…983)

Add /ready, /status, and /metrics to the endpoints table with full
descriptions. Document Kubernetes liveness/readiness probe config.
Explain /status response shape and what "stuck" looks like vs normal
backfill. Addresses client feedback about underdocumented health endpoints.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

COW-983

3 tests: verifies 200 status, {"status":"ok"} body, and JSON content-type.
Matches the behaviour documented in docs/api-reference.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread tests/api/healthz.test.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that we need this... looks overhead.

Comment thread docs/api-reference.md Outdated
| `/status` | GET | Sync progress per chain. Returns current indexed block, latest chain block, and a completion percentage. Useful for monitoring backfill progress. |
| `/metrics` | GET | Prometheus metrics. Exposes Ponder internals (block lag, handler latency, RPC call counts). |

### Health and readiness probes
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, overhead, the description of each one is in the previous table. And this kind of endpoint doesn't need a section; it is a "universal" endpoint

Copy link
Copy Markdown

@yvesfracari yvesfracari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but agree with Jeff comments

Addresses reviewer feedback: endpoint descriptions in the table are
sufficient; the dedicated sub-sections and the healthz unit test are overhead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lgahdl lgahdl merged commit ae1a750 into develop May 29, 2026
4 checks passed
@lgahdl lgahdl deleted the luizhatem/cow-983-docs-document-all-health-readiness-status-and-metrics branch May 29, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants