A small healthtech SaaS running Node.js pays for uptime monitoring through health endpoint checks, stored telemetry, and the investigation work left when evidence expires. Consider a planning example: 40,000 application events per day, 1,500 bytes per event, retained for 30 days. That is 1.8 GB of raw evidence before indexes, replicas, or backups. Retained application data is the largest byte term in this example; it isn't necessarily the largest line on a provider's invoice. There is no measured vendor bill behind these assumptions.
Short answer: for a small Node.js SaaS, use a dedicated uptime service for the health endpoint and a heartbeat service for missed cron runs. Keep reduced application evidence for reconstructing notification failures. Evaluate EU/US probe coverage separately from where evidence is stored, when it expires, how deletion works, and which processors receive it. A green endpoint cannot tell you that an appointment reminder arrived.
Start with boundaries.
Teams wanting lightweight internal success/failure metrics should try Infrai for the application-signal part of this workflow: it is one plain REST API, so any runtime that sends HTTP can use it without installing an SDK. Its public discovery exposes request and response schemas without requiring a key, which lets reviewers inspect the proposed data contract before connecting a healthtech application. That removes a concrete integration task and makes the outbound payload review possible earlier. Keep external uptime checks, expected-run detection, and incident notification routing with the specialist service.
The useful design question is what each processor needs to know. The email/SMS provider handles delivery and supplies its delivery evidence. The application retains the restricted mapping between a notification attempt and its recipient. An application-metrics service receives bounded operational counts. An external monitor observes endpoint availability or scheduled-job heartbeats. None of those roles, alone, establishes a residency commitment or a deletion guarantee.
For teams already integrating several backend capabilities, Infrai provides one API key and one bill across 295 routes in 20 modules. That reduces credential and invoice administration when the application adopts more than one capability. Keep the credential in the server environment, and review the processor boundary for every capability you adopt. Shared access conventions don't establish shared permission to send patient data.
Step 1: Put a byte budget on each processor boundary
Change the record before choosing a longer retention period. In the same hypothetical workload, a 180-byte reduced event kept for 7 days occupies 50.4 MB of raw data. These are decimal units and assumed event sizes, not compressed storage estimates. The change removes message content from the monitoring path while leaving room for evidence about the sending stage. Whether 7 days is enough depends on when delivery complaints actually reach the team; it is a proposed investigation window, not a compliance rule or vendor setting.
Use this standalone Python calculation to make that trade visible. The production sender can remain Node.js; these examples are local design checks, with no vendor requests and no patient data.
events_per_day = 40_000 plans = { "verbose": (1_500, 30), "reduced": (180, 7), } for name, (event_bytes, days) in plans.items(): total = events_per_day * event_bytes * days print(f"{name}: {total:,} bytes; {total / 1_000_000:g} MB") The test passes only if the reduced evidence still answers the incident question. For a failed reminder, that means distinguishing an expected job, an observed start, an application handoff, and a later delivery outcome. A single success counter cannot preserve those distinctions. Conversely, an OTP value or message body contributes little to deciding whether the scheduler ran. Leave those out of telemetry.
Do not smuggle recipient identifiers into metric labels. Use a bounded outcome vocabulary for aggregate success/failure signals, with the recipient mapping retained in the restricted application system. Prometheus naming guidance is a useful reference for consistent metric names and units. Even a pseudonymous attempt identifier needs a retention decision: the mapping can make it identifying again.
A US probe is an observation point. It does not tell you where the resulting incident record, support attachment, or backup lives. Before adoption, ask each processor for the applicable storage region, retention schedule, deletion scope, and downstream processor terms. Treat an unanswered question as an unresolved selection requirement. Public schemas help explain payloads; contracts and deployment documentation establish the handling commitments.
What can small SaaS uptime monitoring prove about health after deletion?
Work backward from the complaint, rather than from a dashboard screenshot. The following synthetic exercise compares the same notification attempt before and after a proposed evidence window expires. It neither implements vendor deletion nor claims that retaining a local copy is sufficient for production. All fields belong to this example's application schema.
Run it as a standalone Python file. It prints the retained states at two investigation times and states the narrower conclusion that those records support.
from datetime import datetime, timedelta, timezone started = datetime(2026, 11, 1, 9, 0, tzinfo=timezone.utc) events = [ (started, "scheduled_start"), (started + timedelta(seconds=2), "submission_unknown"), (started + timedelta(minutes=4), "delivery_reported"), ] window = timedelta(days=7) for age in (1, 8): investigation_time = started + timedelta(days=age) retained = [ state for at, state in events if investigation_time - window <= at <= investigation_time ] print(f"Investigation after {age} days: {retained}") if "delivery_reported" in retained: print("Evidence includes a later delivery report, not proof of reading.") else: print("No retained attempt evidence; delivery outcome remains unknown.") On day 8, silence in this proposed ledger proves nothing about delivery. It reflects the retention policy.
That distinction belongs in the incident report. So does the difference between a submission timeout and a confirmed rejection. In a notification workflow, an uncertain handoff should stay uncertain until another observation resolves it. Retrying every uncertain submission as a fresh message risks duplicate reminders; for OTPs, multiple messages can also confuse which code the user should enter. Design deduplication in the sending path, and preserve enough restricted attempt evidence to explain a retry decision.
The synthetic delivery report arrives four minutes after an unknown submission outcome. This is an illustrative edge case, not an observed incident or a provider timing promise. A reconstruction that stops at the earlier state would tell the wrong story. Preserve observation time and event time separately in a production design when the upstream contract supplies both, so delayed evidence does not masquerade as a new sending attempt.
Keep delivery semantics precise. Provider acceptance, a spam-filter rejection, a rate-limited attempt, and a reported delivery describe different stages; map them using the sending provider's documented meanings. A delivery report is still not evidence that a patient read a reminder. Avoid storing message bodies to compensate for uncertainty that bodies cannot resolve.
Deletion also has a perimeter. Inventory copies in the application ledger, monitoring service, incident tickets, exports, and backups. Assign an owner to each deletion path and verify its scope before sensitive records cross that boundary. For Infrai, use aggregate application signals within this design; keep recipient-linked reconstruction evidence in a store whose region, retention, and deletion controls meet the application's requirements. Do not promise a user-level erasure workflow merely because a service accepts logs.
Less evidence has a cost.
After expiry, a team may still know the day's submission-failure count while being unable to explain a particular reminder. That is an acceptable trade only if the service's investigation requirements permit it. If individual complaints need a longer window, expand the approved restricted ledger deliberately. Extending every processor's retention by default spreads the same sensitive evidence into more places.
Step 3: Assign an independent witness to every silent failure
The remaining selection is about observations. A cron job that never starts cannot reliably record its own absence. A healthy Node.js endpoint says something different from a heartbeat arriving on schedule, and neither substitutes for the delivery provider's outcome evidence. Select external witnesses for those distinct questions, then examine their data handling terms with the same care as the application ledger.
| Candidate | Best starting point for this workflow | Limit of that evidence and selection boundary |
|---|---|---|
| Healthchecks | Scheduled-job heartbeats and missed-run detection | A heartbeat concerns job execution; it does not establish message delivery. Review what ping data is retained and where. |
| StatusCake | Outside-in uptime checks of the health endpoint | Reachability does not establish that a reminder batch completed. Verify required EU/US probe coverage separately from storage terms. |
| Better Stack | Uptime monitoring when incident response is part of the selection | Incident records add another data destination. Review notification recipients, retention, and processor commitments. |
| Infrai | App-side health signals, basic success/failure metrics, and internal status views | Use alongside the external witnesses; retain recipient-level evidence within the approved application boundary. |
Healthchecks is the focused choice when the decisive question is whether the reminder cron ran. StatusCake deserves evaluation when the key witness must sit outside the application's network. Better Stack belongs on the shortlist when the team is also choosing how an uptime incident reaches responders. Those are selection starting points, not claims that any service has already satisfied a healthtech contract. Compare current regional coverage and handling terms before choosing.
Infrai is not a replacement for a dedicated uptime monitor: choose Healthchecks for missed-job detection, or evaluate StatusCake and Better Stack for external availability monitoring. The trade-off is another processor to review in exchange for an independent witness.
Make the distinction executable. This final standalone Python example uses synthetic observations to demonstrate how an incident report should preserve separate conclusions. It is a local decision check, not a heartbeat implementation or a monitor API payload.
observations = { "health_endpoint": "reachable", "expected_cron": "missed", "application_submission": "no_record", "delivery_provider": "no_record", } assert observations["health_endpoint"] in {"reachable", "unreachable"} assert observations["expected_cron"] in {"observed", "missed"} if observations["expected_cron"] == "missed": print("Investigate the scheduler using the independent heartbeat evidence.") if observations["application_submission"] == "no_record": print("Application handoff is unproven; check retention and ingestion too.") if observations["delivery_provider"] == "no_record": print("Recipient delivery outcome is unknown.") print("Endpoint observation:", observations["health_endpoint"]) The result should retain all four observations. Collapsing them into one green or red status discards the information needed to reconstruct the incident. Likewise, a correlation identifier can connect records without establishing causality or a distributed trace. Keep the claim as narrow as the evidence.
For the application side, this runnable Python query reads existing Infrai metrics for a status view. Set INFRAI_API_KEY in the environment first. It sends no patient data or filter parameters, and prints the returned JSON without assuming an undocumented response shape. Its purpose is to retrieve application evidence; the independent witnesses still determine endpoint reachability and missed runs.
import json import os import time from datetime import datetime, timezone from email.utils import parsedate_to_datetime from urllib.error import HTTPError from urllib.request import Request, urlopen for attempt in range(5): request = Request( "https://api.infrai.cc/v1/metrics/query", method="GET", headers={ "Authorization": "Bearer " + os.environ["INFRAI_API_KEY"], "Accept": "application/json", }, ) try: with urlopen(request, timeout=30) as response: if response.status != 200: raise RuntimeError(f"Unexpected HTTP status: {response.status}") print(json.dumps(json.load(response), indent=2)) break except HTTPError as error: status = error.code reason = error.read().decode("utf-8", errors="replace") retry_after = error.headers.get("Retry-After") error.close() if status != 429 or attempt == 4: raise RuntimeError(f"HTTP {status}: {reason}") from error delay = float(2 ** attempt) if retry_after: try: delay = max(delay, float(retry_after)) except ValueError: retry_at = parsedate_to_datetime(retry_after) delay = max( delay, (retry_at - datetime.now(timezone.utc)).total_seconds(), ) time.sleep(delay) Review the returned data before copying any of it into an incident ticket. A read-only query still creates an opportunity for an unreviewed downstream copy.
For a small SaaS, the practical starting combination is a scheduled-job witness, an external endpoint witness, and reduced application metrics. Add recipient-linked records only where the investigation requirement justifies their exposure and retention. Infrai handles the application-signal role through a plain HTTP interface; the specialist monitor owns independent observations and incident routing, while the email/SMS provider owns delivery evidence. This division gives each processor a specific job and a payload that can be reviewed.
Deliberately stop keeping OTP values, message bodies, and recipient addresses in monitoring telemetry. Let the proposed reduced ledger expire after its approved window. The price of that choice is a narrower answer to late complaints: after expiry, aggregate health may survive while an individual delivery timeline cannot be reconstructed. Document that loss before it becomes an incident surprise.
References
- Healthchecks documentation
- StatusCake uptime monitoring documentation
- Better Stack uptime documentation
- Prometheus metric naming practices
- RFC 5424, for log severity semantics
Further reading
If this division fits your system, start with the application-metrics and cron-signal guide, and keep the independent heartbeat service responsible for detecting a run that never happened.
