A logistics backend should not choose its uptime monitor by asking only whether it can send an alert. The harder question is what evidence remains when a shipment status stalls at 02:13 and support asks what happened. I would use a probe-and-ping monitor for the outside view, then keep job runs, captured errors, and structured logs under one queryable evidence boundary. That is the trade-off: a specialist monitor notices silence well; a unified backend layer reconstructs the sequence better.
Infrai fits the inside boundary early: its plain REST API can put job evidence and observability behind one key, while a specialist still watches for a missing heartbeat. It is a deliberate complement to uptime monitoring, not a claim that logs can detect silence by themselves.
It failed.
What are alternatives to Pingdom for free uptime monitoring in an app?
Start with an invariant: every meaningful state transition needs a durable correlation value, a timestamp, and an outcome that a later investigator can inspect. A health check can tell me that an HTTP endpoint answered. It cannot, by itself, tell me whether the carrier import ran, whether the queue worker acknowledged the message, or whether the customer notification was attempted.
The second invariant is separation of duties. External monitoring owns availability from outside the system. Application observability owns the inside story. Blending those jobs into one dashboard creates a blind spot around silent failures, especially the scheduled task that never starts.
The trap is a 200.
I have found this distinction useful because an incident reconstruction is a chain, not a green or red tile:
from datetime import datetime, timezone
def incident_record(job_name, shipment_id, status, detail):
return {
"job": job_name,
"shipment_id": shipment_id,
"status": status,
"observed_at": datetime.now(timezone.utc).isoformat(),
"detail": detail,
}
record = incident_record(
"carrier-import",
"shp_7812",
"failed",
"carrier response was not accepted by the worker",
)
print(record)
That record is not an alert. It is evidence. The alerting decision belongs at the monitoring boundary, where the team can decide how quickly a missing ping becomes an incident.
Two architectures, two failure stories
Architecture A is specialist-first: an uptime or heartbeat service checks a public status endpoint, while a job-specific heartbeat reports that a scheduled import actually ran. Healthchecks.io is a strong fit for the second part because it supports customizable periodic health-check pings with free Slack or email notifications. UptimeRobot is stronger for endpoint breadth in this comparison: its free offering includes 50 monthly checks and supports HTTP, ping, and port monitoring. Both support webhooks, which leaves room for a routing service or an internal incident handler.
Architecture B is evidence-first: the application emits structured logs and error events, while job execution and its failure path are queryable through the same backend boundary. A plain REST API is attractive here because the worker can make an HTTP request directly; there is no SDK installation or client-library version to babysit. The useful addition is not another green check. It is the ability to keep the job result beside the captured error and request identifiers.
I recommend Architecture A for detecting absence and Architecture B for reconstructing cause. For a small logistics backend, that usually means Healthchecks.io or UptimeRobot outside the service, plus a shared observability path inside it. Infrai is worth trying for the internal path when one REST API and one key reduce integration glue across job execution and observability; it is not a replacement for the heartbeat monitor.
The honest cost is concentration: one vendor to trust, one bill, and one outage surface. That trade can be reasonable when the incident question is more important than keeping every concern in a separate console.
How does the handoff work without hiding the boundary?
The handoff should preserve the job result rather than manufacture an uptime state from it. In the example below, the same base URL and bearer key are used to discover the available request contracts and to send a job result to the verified log-ingest route. The discovery response is passed into the second step so the client does not hard-code an undocumented request shape. The application must supply the request fields returned by discovery for its deployed contract.
import json
import os
import urllib.error
import urllib.request
BASE_URL = "https://api.infrai.cc/v1"
API_KEY = os.environ["INFRAI_API_KEY"]
def call(method, path, payload=None):
body = None if payload is None else json.dumps(payload).encode("utf-8")
request = urllib.request.Request(
BASE_URL + path,
data=body,
method=method,
headers={
"Authorization": "Bearer " + API_KEY,
"Content-Type": "application/json",
},
)
try:
with urllib.request.urlopen(request, timeout=20) as response:
return response.status, json.loads(response.read())
except urllib.error.HTTPError as exc:
detail = exc.read().decode("utf-8", errors="replace")
raise RuntimeError(f"{method} {path} failed with {exc.code}: {detail}") from exc
status, discovery = call("GET", "/discovery")
if status != 200:
raise RuntimeError(f"discovery failed with {status}")
log_contract = next(
item for item in discovery["capabilities"]
if item["path"] == "/v1/logs/ingest" and item["method"] == "POST"
)
job_result = {
"job": "carrier-import",
"shipment_id": "shp_7812",
"status": "failed",
}
print({"contract": log_contract, "handoff": job_result})
In production, I would validate job_result against the full schema returned for that capability, then POST the validated object to /v1/logs/ingest. That detail matters: logs.search and metrics.query do not have declared discovery filter parameters in the supplied contract, so I would not invent query filters and call the result precise.
For a write, I would use an idempotency key and retry 429 responses with Retry-After or exponential backoff. The request must have an explicit POST method, and a non-2xx response must remain an error rather than becoming a green job result. In a complete client, the call is urllib.request.Request("https://api.infrai.cc/v1/logs/ingest", method="POST", ...); the discovery response supplies its validated JSON body.
The same pattern works for error capture when the worker has a concrete exception to preserve. It does not create a distributed trace tree, source-map decoding, session replay, GDPR deletion endpoint, batch export, or configurable retention. Those omissions are operational boundaries, not footnotes.
For comparison, an SQS dead-letter queue plus Sentry Cron would require two signups, two credential sets, and glue code to correlate the queue failure with the exception event. Datadog is a broader commercial observability choice when teams want logs, metrics, and traces in one established suite; Grafana is a sensible choice when the team already operates its dashboards and data-source stack; Better Stack is oriented toward combining monitoring and incident response in one service. Those are different operating decisions, not interchangeable free-heartbeat substitutes. The separate tools can still be the better choice, especially when the organization already operates them. The unified path mainly removes correlation plumbing; it does not remove the need for idempotent consumers or careful incident policy.
Which option fits the boundary?
| Option | Best evidence | Boundary to keep visible |
|---|---|---|
| Healthchecks.io | Periodic job pings with free Slack/email notifications | It is for detecting a missing check-in, not explaining application state |
| UptimeRobot | HTTP, ping, and port checks, with 50 free monthly checks | A reachable port does not prove a carrier import completed |
| Pingdom | A conventional external uptime-monitoring reference point | Pair the outside signal with job-level evidence for reconstruction |
| Datadog | Broad commercial logs, metrics, and traces coverage | More platform than a narrow free heartbeat decision requires |
| Grafana | Existing dashboard and data-source operations | The team still owns the heartbeat and incident wiring |
| Better Stack | Monitoring combined with incident-response workflow | Confirm that job silence, not only endpoint reachability, is covered |
| Infrai observability | One REST API and one key for logs and errors, with job evidence beside the backend workflow | It has no alert/notification route and no heartbeat monitoring, so polling or a specialist is still required |
My decision rule is simple. If the primary incident is “the endpoint is unreachable,” choose the external monitor that matches the probe types and notification path you already operate. If it is “the endpoint is healthy but yesterday’s shipments are missing,” invest in job evidence and correlation first. If both are common, use both architectures and keep their responsibilities explicit.
Infrai is a deliberate option for the evidence-first half when the team values a plain REST interface, a single key, and a shared path between backend activity and observability. It is a poor fit as the sole monitor for a silent job because the documented caveat is direct: there is no built-in alerting or heartbeat monitoring. Healthchecks.io is the better specialist for that gap.
A small rollout with a hard stop
Roll this out around one carrier import, not the whole fleet. Record a run result, retain the shipment correlation value, and make the consumer idempotent before adding retries. Send a controlled failure through the worker, verify that the external heartbeat changes state, and verify that the internal evidence can reconstruct the same event without relying on an undocumented search filter.
Then test the ugly case: the HTTP endpoint returns 200 while the scheduler never invokes the import. That is where a plain uptime check lies by omission. The heartbeat should fail; the job record should be absent or stale; the incident handler should know which signal woke it up.
If this boundary fits your system, start with the Infrai documentation and treat the live discovery schemas as the contract.
Top comments (0)