Connection Hub

Connect SmokePing, Cloudflare and other external systems to Uptriva through scoped connections.

What the Connection Hub is

The Connection Hub is the catalog of everything that can feed into or act on your monitoring — integrations you can browse, then wire up as connections. Each connection gets its own scoped credentials and an audit trail, so a connected system only ever sees the access it needs.

You find it in the dashboard under Connection Hub. The catalog is visible to everyone; creating connections is rolling out gradually.

Connections

A connection ties one external system to your account: a name, an optional location label, a status page scope (or account-level) and scoped credentials. Connections can be updated or removed at any time — credentials are stored encrypted and deleted with the connection.

Every write a connection performs lands in its action log (GET /connections/:id/actions) — DNS changes, zone connects, domain attaches, each with trigger, result and detail. Nothing happens silently.

SmokePing connector

The open-source SmokePing connector reads latency, packet loss and jitter from an existing SmokePing install and streams the samples into Uptriva — read-only, outbound-only, works behind NAT:

  1. Create a connection of type SmokePing — you get a scoped ingest token, shown once
  2. Run the connector next to your SmokePing instance and paste the token into its config (outputs.uptriva)
  3. Samples appear under the connection's targets within seconds

The connector ships as a single binary and a Docker Compose stack; it can also export to a generic webhook or a Prometheus /metrics endpoint if you want Uptriva to be just one of several outputs.

Ingest is a bulk endpoint — the connector batches hundreds of targets into a few requests:

curl -X POST https://api.uptriva.com/api/v1/uptime/ingest/network \
  -H "Authorization: Bearer conn_..." \
  -H "Content-Type: application/json" \
  -d '{
    "samples": [
      { "target": "8.8.8.8", "probe": "FPing", "rtt_ms": 12.4, "loss_pct": 0, "location": "home", "ts": 1730000000 }
    ]
  }'

Batches accept up to 500 samples; the per-plan target cap applies to distinct targets. With a smokeping connection token you can only push samples — nothing else.

Linking targets to monitors

A SmokePing target can be linked to a monitor (GET /connections/:id/network-links), which puts the path series next to the monitor's availability data — when a monitor times out but the link series is clean, the application is at fault; when loss or jitter spikes, it's the network path. Links accept optional alert_rtt_ms and alert_loss_pct thresholds, so a sustained latency or loss breach on the path can fire an alert on its own. All targets a connection has seen are listed via GET /connections/:id/targets, recent samples via GET /connections/:id/samples.

Cloudflare

A Cloudflare connection operates your zone's DNS on your behalf — with a narrowly scoped token:

  1. Create a scoped API token in Cloudflare (My Profile → API Tokens → Create Token) with Zone → DNS → Edit, restricted to this zone only — never a Global API Key
  2. Create a connection of type Cloudflare with the token and the zone ID — we verify both on creation
  3. Connect more zones later under Connection → Zones

What a verified connection can do:

  • One-click status-page domains — pick the connection in your status page's domain settings (or the create form) and we create the CNAME in your zone, verify it and provision the SSL certificate (POST /status-pages/:id/custom-domain/cloudflare, see Status Pages)
  • Automatic DNS failover — see below
  • Every DNS write lands in the action log with before/after values

The token only ever gets Zone DNS:Edit on the zones you connect — credentials are encrypted at rest and the log shows exactly what was done with them.

DNS failover rules

A failover rule links a monitor, a DNS record (A, AAAA or CNAME) in a connected zone and a fallback target. When the monitor is confirmed down — the same multi-region quorum signal that fires major alerts — the record is rewritten to the fallback. When the monitor recovers and stays up through the stabilization window (default 15 min), the original value and TTL are restored.

Guardrails against flapping:

  • Per-record cooldown between mutations (default 10 min)
  • Hourly mutation budget per connection, scaled by plan — on exhaustion the rule disables itself and alerts you
  • Stabilization window before automatic failback
  • Dry-run mode — new rules default to dry-run and only log what they would change

Rule state moves armed → failed_over → restoring → armed. A rule can be set to auto_failback: false, in which case POST .../failover-rules/:ruleId/restore performs the rollback manually — restore and delete always work, no plan required. Every mutation (and every dry-run would-be mutation) lands in the connection's action log.

Plan limits: the free tier includes 1 zone and 1 failover rule (10 mutations/hr); paid plans scale up to 100 rules and 300 mutations/hr. One-click domain attaches require a paid plan since they provision certificates on our ingress.

API surface

Method Path Description
GET / POST /connections List / create connections (create returns the token once)
GET / PUT / DELETE /connections/:id Detail, update, remove
GET /connections/:id/samples Recent network samples
GET /connections/:id/targets Distinct targets seen
GET /connections/:id/network-links Monitor ↔ target links
GET / POST / DELETE /connections/:id/cloudflare/zones[/:zoneId] Connected zones
GET / POST / DELETE /connections/:id/cloudflare/failover-rules[/:ruleId] DNS failover rules
POST /connections/:id/cloudflare/failover-rules/:ruleId/restore Manual failback
POST /connections/:id/cloudflare/zones/verify Re-verify zone token access
GET /connections/:id/actions Connection action log
POST /ingest/network Push sample batches (connection token auth)