Skip to content

Add /health and basic metrics endpoints for monitoring #39

@meenakshi30-code

Description

@meenakshi30-code

Describe the Task / Problem No health-check or basic metrics endpoints are available to monitor the service in production.

Steps to Reproduce

Inspect backend — no /health or /metrics endpoint found.

Expected Behavior-
A lightweight /health (or /healthz) endpoint that returns app status and dependency checks.
Optional /metrics for Prometheus (request counts, latencies).

Actual Behavior-
No standard health or metrics endpoints.

Suggested Fix-
Add /healthz route returning 200 when the service is healthy.
Optionally add prom-client for basic Prometheus metrics and expose /metrics.

Files to check-
backend/src/server.js or create backend/src/health.js
Labels

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions