[grade=B] DC-097+DC-092: Prometheus metrics export + dependency health checks
DC-097: Add /api/v1/metrics/prometheus endpoint returning standard Prometheus text exposition format. Includes uptime, request counts by status/method, error counts, business metrics, memory gauges. Public (no auth) for Prometheus scraping. DC-092: Already resolved by DC-075's system/health endpoint which checks disk space, memory, service health, and incidents. All 1540 tests pass.
This commit is contained in:
@@ -439,6 +439,8 @@ module.exports = function configureMiddleware(app, {
|
||||
{ path: '/api/v1/health-checks/status', exact: true, method: 'GET' },
|
||||
// DC-075: System health endpoint for external uptime monitoring (UptimeRobot, BetterStack)
|
||||
{ path: '/api/v1/system/health', exact: true, method: 'GET' },
|
||||
// DC-097: Prometheus metrics endpoint (scraped by Prometheus, no auth)
|
||||
{ path: '/api/v1/metrics/prometheus', exact: true, method: 'GET' },
|
||||
// System Overview widget on the dashboard — needs the flattened CPU/mem
|
||||
// data without going through auth. See skill references/totp-and-system-overview-pitfalls.md §3.
|
||||
{ path: '/api/v1/monitoring/stats', exact: true, method: 'GET' },
|
||||
|
||||
Reference in New Issue
Block a user