API referenceConsole
observability
Polylane turns your saved Axiom queries into checks, investigates monitors as they fire, runs APL over your logs and traces to find the cause, and writes the fix.

Connect

Connect Axiom from the terminal. Pass --help for the flags Axiom accepts.

Terminal
polylane integration connect --type axiom

How it works

Monitors start investigations

When a monitor opens, Axiom sends it to the polylane notifier. Polylane opens an issue and triages it. More notices from the same monitor go to the same issue. When the monitor closes, the notice goes on the issue timeline, and the agent uses it as evidence. The issue stays open after that notice.

Every hour, Polylane checks the token and adds the notifier to each monitor that does not have it. A monitor that you create reaches Polylane within one hour. If Axiom refuses a step because of a permission or your plan, Polylane stops the hourly sync and tells you what to fix.

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

Queries

Agents query logs, traces, and events with APL, and metrics with MPL. Polylane sends each query to the edge deployment that holds the dataset.

Checks

Polylane runs checks on each dataset every 30 minutes. Built-in checks watch error and fatal log lines, tail duration, the share of server-error responses, log throughput, dataset volume, and OOMKilled and segfault lines. Polylane also makes checks from your dashboards and from up to ten of your monitors and starred queries. It samples recent log lines to find errors that it did not see before. It also finds signals: queries that watch one business operation, such as a checkout.

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 links each resource in the context graph whose name is the same as the name of a dataset to an Axiom node. A dataset name that matches more than one resource links nothing.

During an investigation

Agents run APL and MPL queries, and read datasets, fields, dashboards, monitors, notifiers, saved views, virtual fields, and annotations. Agents can also create annotations, dashboards, monitors, saved views, and virtual fields. 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.

Token permissions

Give the token these permissions:

  • Query access to the datasets that you want agents to query.
  • Read access to datasets, dashboards, monitors, notifiers, annotations, views, virtual fields, and starred queries.
  • Update access to monitors, and create access to notifiers. Polylane needs these to add the polylane notifier to your monitors.
  • Delete access to notifiers. Polylane needs it to remove the notifier when you disconnect.

Axiom does not let you edit the permissions of a token after you create it. To add a permission, create a replacement token.

Troubleshooting

  • Missing permissions. The connect form lists the access that the token does not have. Create a replacement token with that access. On the integration page, paste it under Credentials, then select Verify.
  • Plan restriction. If your Axiom plan does not include custom webhook notifiers, alert setup cannot complete. Change the plan in Axiom, then select Verify under Credentials.

Disconnecting

Disconnecting removes the polylane notifier from every monitor and deletes the notifier. Remove the notifier from your Terraform configs at the same time. Then revoke the API token in Axiom.

Disconnect

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

Terminal
polylane integration disconnect <id>

Tools

9

Operations agents can perform in threads.

Api
Call any Axiom REST endpoint that lacks a dedicated tool
Queries
Run an Axiom query (APL for logs/traces/events, MPL for metrics)
Datasets
Read Axiom datasets and their fields
Dashboards
Read or create Axiom dashboards
Monitors
Read or create Axiom monitors
Views
Read or create Axiom saved views
Annotations
List or create Axiom annotations
Virtual Fields
List or create Axiom virtual fields
List Notifiers
List alert notifiers in Axiom