Axiom
Connect
Connect Axiom from the terminal. Pass --help for the flags Axiom accepts.
polylane integration connect --type axiomAn Advanced API token with query access to your datasets.
Connect your Axiom organization with one Advanced API token.
- In Axiom, open Settings → API tokens, select Create API token, and choose Advanced. Name the token
polylaneand give it the permissions listed under Token permissions. A Basic token can only send data. - Paste the token into Polylane. Polylane checks the read access of the token and finds the edge deployment of your datasets.
- If Polylane cannot find the edge deployment, select it: US East 1 or EU Central 1. Axiom shows it under Settings → General → Edge deployment.
Polylane encrypts the token before it stores it, and the agent never sees it.
On connect, Polylane creates a custom webhook notifier named polylane and adds it to every monitor. Each monitor keeps its other notifiers. Your Axiom plan must include custom webhook notifiers.
Register Axiom alerts to Polylane alongside your Terraform-managed resources.
The hourly sync adds the polylane notifier to every monitor, so a Terraform-managed monitor shows drift until its Terraform config has the notifier ID too. Find the ID in Axiom under Monitors → Notifiers (the notifier named polylane), or with GET /v2/notifiers on the Axiom API. Then add it to each monitor:
resource "axiom_monitor" "example" {
# ...
notifier_ids = concat(var.notifier_ids, [var.polylane_notifier_id])
}
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
polylanenotifier 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.
polylane integration disconnect <id>Tools
9Operations agents can perform in threads.