MongoDB Atlas shared/free tiers return a legacy dbStats shape that omits `totalSize` (while still returning storageSize/indexSize). diagnosticService passed that undefined straight through, so the Diagnostics UI crashed with "Expected a finite number, got undefined". Derive totalSize (storageSize + indexSize) at the DB and per-collection level so it always satisfies the non-optional `totalSize: number` type. Confirmed it is not a version removal (stock mongo:8 returns totalSize) nor a permissions issue (missing even with atlasAdmin). Adds unit tests for the derivation.
Checkmate backend
The backend service for Checkmate, an open source uptime and infrastructure monitoring application
This directory contains the backend of Checkmate, which handles data processing, storage, and API services for the Checkmate monitoring tool. The backend is responsible for managing uptime checks, handling real-time alerts, and storing historical monitoring data.
Checkmate's backend is designed to be lightweight and scalable, ensuring reliable performance even with a high number of active monitors.
Installation & documentation
For setup instructions, configuration details, and deployment guidelines, please visit our official documentation at docs.checkmate.so.
Related repositories
- Capture Agent (Optional, provides additional server insights)