API referenceConsole
observability

Better Stack

Polylane checks your uptime monitors, heartbeats and response times, investigates every Better Stack incident, and finds what changed right before.

Connect

Connect Better Stack from the terminal. Pass --help for the flags Better Stack accepts.

Terminal
polylane integration connect --type betterstack

How it works

Incidents start investigations

The polylane webhook sends each incident to Polylane when it starts, when someone acknowledges it, and when it resolves. A started incident opens an issue in Polylane, and Polylane triages it. More notices of the same incident go to the same issue. An acknowledgement does not start triage. A resolved incident goes on the issue timeline, and the agent uses it as evidence.

Polylane reads the monitor of each incident. On the Alerts tab of the integration page, turn automatic triage on or off for the connection or for each monitor.

Checks

Polylane runs checks on your Better Stack account every 30 minutes. They watch the number of monitors that are down, the number of incidents that open, the average response time, and the average availability of your monitors. With a SQL API connection, Polylane also reads error rows from up to five telemetry sources to find errors that it did not see before.

Under Anomaly detection on the integration page, change how often the checks run, or turn them off. Polylane also explores the connection when you connect it and every 12 hours, and opens an issue for each problem that it finds.

Context graph

Every hour, Polylane reads the URL of each uptime monitor. It links the resource in the context graph that serves that hostname to a Better Stack node.

During an investigation

Agents read monitors with their status, availability, and response times, incidents and their timelines, heartbeats, status pages, status reports, and telemetry sources. Agents can also acknowledge or resolve an incident, create a monitor, and publish a status report. Each change needs safety review and approval before it runs.

Polylane checks the token every six hours. Under Credentials on the integration page, verify the saved token or replace it.

API tokens

A global API token works for all your Better Stack teams and products. It covers monitors, incidents, heartbeats, status pages, and telemetry sources. Better Stack documents global tokens for the Uptime API and the Telemetry API.

The global token reads resources of all teams. The team name decides which team owns the incident webhook and the monitors that agents create. An agent can choose another team when it creates a monitor.

The connect API also accepts a team-scoped Uptime API token and a team-scoped Telemetry API token. Each one replaces the global token for its product.

Log reads use the SQL API, which needs a separate username and password.

Disconnecting

Disconnecting deletes the polylane outgoing webhook. Then revoke the API token in Better Stack, and remove the SQL API connection if you added one.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in Better Stack is removed as well; nothing is left behind.

Terminal
polylane integration disconnect <id>

Tools

7

Operations agents can perform in threads.

Api
Call any Better Stack REST endpoint that lacks a dedicated tool
Monitors
Read or create Better Stack uptime monitors
Incidents
Read Better Stack incidents and their timelines, or acknowledge/resolve one
Heartbeats
List Better Stack heartbeats (cron/job check-ins)
Status Pages
List Better Stack status pages
Status Reports
Read and publish Better Stack status page reports (public incident communication)
Sources
List Better Stack telemetry sources