A rent-processing incident needs evidence that survives the application going quiet. TL;DR: for a small property-management SaaS serving EU and US customers, use external uptime checks for the health endpoint, a heartbeat service for scheduled work, and application logs and metrics for reconstruction. Attribute the evidence to a workflow and an operating region before choosing a dashboard; otherwise, an impressive volume chart still won't explain which customer operation justified the collection cost.
Consider a planning exercise, not a report of a production incident: a tenant can open the portal, but the scheduled rent-reconciliation run has produced no completion record. The health endpoint is green. The question is whether the run was never started, stopped partway through, or completed without leaving the evidence the support team needs. Those are different investigations, and a successful HTTP check answers none of them by itself.
Keep the silence visible.
The invariant is that the system expected to perform work cannot be its only witness. A missing application log is ambiguous until something outside the execution path knows when that log should have existed. For a platform lead, that distinction determines both the SLO design and the ownership of the collection bill: reachability belongs to the service, scheduled completion belongs to the workflow, and retained incident evidence needs an explicit budget.
How should small SaaS uptime monitoring budget health checks, cron jobs, and app logs?
For incident reconstruction, retain an opaque run identifier, workflow, operating bucket, start and completion timestamps, outcome, and deployment reference in the application evidence you control. This is a proposed internal record, not a claim about any vendor's request schema. Decide separately where those records can be stored, retrieved, exported, and deleted under the organization's requirements.
Put numbers on the plan.
For example, assume 2 operating buckets, 3 workflows, 24 runs per workflow per day, and 2 lifecycle records per run. That is 288 scheduled-work records per day before retries, per-item details, or request traffic. At an assumed average encoded record size of 1,000 bytes, a hypothetical 30-day evidence window contains 8,640,000 raw bytes. Those are planning inputs and arithmetic, not measured usage, a promised retention feature, or a bill estimate; indexes, replication, payload variation, and retries need their own allowance.
This small calculation makes the attribution question concrete. Charge lifecycle evidence to the workflow that generates it, and keep the external check budget separate from application request logging. If per-item records dominate, determine whether reconstruction really requires all of them or whether a bounded summary plus durable business records can answer the support question. A general-purpose observability store should not silently become the only ledger for rent activity.
The budget is per investigation, not per attractive graph. That accounting boundary comes first; the monitoring boundary follows from the evidence the team agrees to retain.
Start with three separate questions: can an external caller reach the service, did the scheduled workflow complete within its allowed window, and can support reconstruct an affected operation? Even for a Node.js application, these are monitoring responsibilities rather than reasons to install another runtime library. The implementation below uses Go for a small companion utility; it does not require changing the application's language.
For this exercise, use the internal labels rent-reconciliation, eu, and us. They describe example operating buckets, not a provider's data-residency guarantee. Keep customer names, property addresses, and tenant identifiers out of metric labels. A workflow-level series is useful for capacity planning; a separate series for every tenant can turn a routine onboarding increase into an uncontrolled increase in telemetry.
Write the operating contract before buying anything. Define the external health-check interval, the scheduled run's expected completion time and grace period, and how long incident evidence must remain available. These are policy choices, not vendor defaults. Choose the alert destination and a named responder too, because a dashboard that nobody watches doesn't satisfy an availability objective.
There is a useful trap here: a log that says a job started can make the system look busy while proving nothing about completion. Pair start and completion records with an opaque run identifier, and let an external heartbeat deadline detect the absent completion. Logs explain the run that happened; the deadline identifies the run that needs investigation.
Compare the evidence each purchase actually buys
The buy-versus-build decision should turn on who owns the failure detector and its response path. The following products occupy different parts of that decision; treating them as interchangeable creates extra integration work without making the incident easier to reconstruct.
| Option | Appropriate responsibility | Buy-versus-build consequence |
|---|---|---|
| Healthchecks | Expected arrivals from scheduled jobs | A natural choice for the missing-completion question; retain separate evidence for what the job actually did. |
| UptimeRobot | External endpoint monitoring | A useful candidate for basic reachability checks; an HTTP success remains insufficient evidence of rent reconciliation. |
| Prometheus | Application metrics with a naming and aggregation model | Useful when the team wants control of its metric design; a self-hosted deployment also assigns the team responsibility for operating that deployment and its alert path. |
| Grafana | A dashboard option to evaluate alongside the chosen metric store | Consider it when a visualization layer is the missing piece; assess the external check and heartbeat requirements separately rather than treating a chart as a failure detector. |
| Datadog | An integrated observability evaluation | Evaluate the relevant synthetic, scheduled-work, and investigation workflows together; adopting a broader platform deserves a broader operational justification. |
| A shared REST backend | Application telemetry and a realtime dashboard handoff | Useful when the team wants fewer integration boundaries; keep the external uptime and heartbeat responsibilities explicit. |
Infrai fits the last row as a plain REST API with no SDK to install, a single key and unified billing across 295 routes in 20 modules, and public self-describing discovery that requires no key, so an HTTP client can connect metrics and realtime while the team inspects request schemas independently. For this workflow, one key and one bill let the platform team assign the handoff to one credential owner rather than reconcile two service accounts. Its per-call cost, vendor, latency, and request metadata can support integration-level cost attribution; that metadata does not automatically assign a bill to a property portfolio or reconstruct an entire customer incident.
The alternative Datadog + Pusher design involves two service signups and two independent sets of service credentials, plus code that obtains the metric result, maps it into an event, and publishes that event. These are two products with distinct responsibilities, so the extra integration can be justified when their individual workflows fit the organization. An established deployment is a reason to evaluate incremental complexity carefully.
The trade-off is one vendor to trust, one bill, and one outage surface.
Do not turn a realtime dashboard into the paging authority. In this design, uptime checks and heartbeat deadlines remain with external monitoring, including notification routing. The dashboard transports observations; it does not establish the SLO or prove that a scheduled task completed.
Use an explicit SLO for successful scheduled completion within the chosen deadline, and another for endpoint availability. An error budget discussion becomes confused when one graph treats a reachable portal and a completed financial workflow as the same event. Neither a low log volume nor a high log volume establishes success.
The code that follows deliberately queries an existing metric result. It does not add undocumented workflow or region filters. If the returned data cannot support the desired attribution, the answer is to change the evidence model or select an appropriate query surface, not to invent query parameters.
Implement a bounded handoff and verify the investigation path
Use this utility for a bounded dashboard refresh after the external checks and application evidence are already in place. It makes one metrics query and feeds the complete decoded response into one realtime publish request, using the same base URL and credential for both calls. The HTTP method is explicit on each request.
Save the program as main.go. Set BACKEND_BASE_URL to the documented API base ending in /v1, and set INFRAI_API_KEY through your secret-management process. Set PUBLISH_REQUEST_JSON to a publish request prepared against the public discovery schema, with the JSON string "__METRICS_RESPONSE__" appearing exactly once in its event-payload position. Channel and event configuration belong to that schema; the utility supplies no guessed vendor field names. Set PUBLISH_IDEMPOTENCY_KEY to a stable identifier for this refresh, and use a new identifier for the next logical refresh. Run it with the Go toolchain's go run main.go command.
This is intentionally a schema-supplied request template. The literal marker below is a local substitution convention, not an API parameter. Prepare the target channel and its access policy beforehand; broadcasting a query response requires a channel whose subscribers are allowed to see the entire response.
package main import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" "os" "strconv" "strings" "time" ) func required(name string) string { value := os.Getenv(name) if value == "" { panic("missing environment variable: " + name) } return value } func substitute(value any, result json.RawMessage, count *int) any { switch node := value.(type) { case string: if node == "__METRICS_RESPONSE__" { *count = *count + 1 return result } case map[string]any: for key, child := range node { node[key] = substitute(child, result, count) } case []any: for index, child := range node { node[index] = substitute(child, result, count) } } return value } func retryDelay(header string, attempt int) time.Duration { if seconds, err := strconv.Atoi(header); err == nil && seconds >= 0 { return time.Duration(seconds) * time.Second } if deadline, err := http.ParseTime(header); err == nil { if delay := time.Until(deadline); delay > 0 { return delay } } return time.Second * time.Duration(1<<attempt) } func request(ctx context.Context, client *http.Client, base, key, method, path, idempotency string, body []byte) ([]byte, error) { for attempt := 0; attempt < 4; attempt++ { req, err := http.NewRequestWithContext(ctx, method, base+path, bytes.NewReader(body)) if err != nil { return nil, err } req.Header.Set("Authorization", "Bearer "+key) if body != nil { req.Header.Set("Content-Type", "application/json") } if idempotency != "" { req.Header.Set("Idempotency-Key", idempotency) } response, err := client.Do(req) if err != nil { return nil, err } payload, readErr := io.ReadAll(io.LimitReader(response.Body, 2<<20)) response.Body.Close() if readErr != nil { return nil, readErr } if response.StatusCode == http.StatusTooManyRequests && attempt < 3 { timer := time.NewTimer(retryDelay(response.Header.Get("Retry-After"), attempt)) select { case <-ctx.Done(): timer.Stop() return nil, ctx.Err() case <-timer.C: continue } } if response.StatusCode < 200 || response.StatusCode >= 300 { return nil, fmt.Errorf("%s %s: status %d: %s", method, path, response.StatusCode, payload) } return payload, nil } return nil, fmt.Errorf("retry budget exhausted") } func run() error { base := strings.TrimRight(required("BACKEND_BASE_URL"), "/") key := required("INFRAI_API_KEY") refreshID := required("PUBLISH_IDEMPOTENCY_KEY") var template any decoder := json.NewDecoder(strings.NewReader(required("PUBLISH_REQUEST_JSON"))) decoder.UseNumber() if err := decoder.Decode(&template); err != nil { return fmt.Errorf("publish template: %w", err) } ctx, cancel := context.WithTimeout(context.Background(), 45*time.Second) defer cancel() client := &http.Client{ Timeout: 10 * time.Second, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, } result, err := request(ctx, client, base, key, http.MethodGet, "/metrics/query", "", nil) if err != nil { return err } if !json.Valid(result) { return fmt.Errorf("metrics response is not valid JSON") } count := 0 template = substitute(template, json.RawMessage(result), &count) if count != 1 { return fmt.Errorf("publish template needs exactly one payload marker") } payload, err := json.Marshal(template) if err != nil { return err } _, err = request(ctx, client, base, key, http.MethodPost, "/realtime/publish", refreshID, payload) return err } func main() { if err := run(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } fmt.Println("Metric response published.") } Judge the handoff at its actual boundary: the publish request contains the metric query response as JSON, and an authorized subscriber must receive the expected event. An accepted publish alone is not evidence that a human saw the dashboard. Preserve the same idempotency key across retries of the same refresh, including a manual rerun after an uncertain outcome; otherwise, retrying the utility can create a second logical publication.
The utility honors Retry-After on rate limits, falls back to exponential backoff, limits attempts, and stops within a 45s overall deadline with a 10s per-request timeout. It surfaces rejected responses instead of reporting a successful refresh. Its 2 MiB response-read bound is an example safety budget, not a platform limit; a larger metric result needs a deliberately revised payload design rather than an ever-growing dashboard event.
There is still a query here. Run it on a deliberate refresh trigger or bounded schedule, not in every browser tab. The shared interface removes a cross-product credential boundary; it does not remove the read required to obtain metrics, provide automatic metric-to-channel streaming, or establish that querying another vendor has a particular billing model.
For a small SaaS, keep the initial acceptance test narrow: an external request can reveal loss of reachability, a missed scheduled completion reaches the chosen responder, and a support investigation can join the run's retained records without relying on an ephemeral dashboard event. Confirm those paths for both operating buckets before adding more charts.
Use the realtime handoff only when an operations screen needs it. This design is not suitable as the sole incident archive: a daily incident review needs retained evidence, and a channel adds another dependency without improving reconstruction. Its limitation is the boundary between transporting an observation and preserving an investigation record. If investigators need a distributed span tree, symbolicated crashes, replay, per-person erasure, or managed archive and export controls, assess those requirements directly with a suitable product and verified storage policy; this example establishes none of those properties.
The useful selection criterion is evidence per supported investigation, with an owner for the collection and response workload. A green health check, a timely heartbeat, and a retained business-workflow record earn their place by answering different questions. Buy each missing answer before expanding the dashboard.
Sources
References for monitoring boundaries, product evaluation, and telemetry conventions:
- Healthchecks documentation: https://healthchecks.io/docs/
- UptimeRobot monitoring documentation: https://uptimerobot.com/uptime-monitoring/
- Prometheus metric naming practices: https://prometheus.io/docs/practices/naming/
- Grafana documentation: https://grafana.com/docs/grafana/latest/
- Datadog Synthetic Monitoring documentation: https://docs.datadoghq.com/synthetics/
- Pusher Channels server API documentation: https://pusher.com/docs/channels/server_api/overview/
- RFC 5424, severity and structured logging conventions: https://datatracker.ietf.org/doc/html/rfc5424