API referenceConsole
observability
Polylane runs checks on your Datadog metrics, logs and APM traces, investigates monitors as they fire, finds the cause of each issue, and writes the fix.

Connect

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

Terminal
polylane integration connect --type datadog

How it works

Monitors start investigations

Each monitor notification goes to the polylane webhook. A triggered or re-triggered monitor opens an issue in Polylane, and Polylane triages it. More notices from the same monitor go to the same issue. Polylane records a Warn or No Data notice, but that notice does not start triage. A recovery notice goes on the issue timeline, and the agent uses it as evidence. The issue stays open after a recovery notice.

Every hour, Polylane adds the mention and the tag to each monitor that does not have them. A monitor that you create reaches Polylane within one hour. Synthetics monitors use a different Datadog API, so Polylane does not change them and their alerts do not reach Polylane.

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 Datadog data every 30 minutes. Built-in checks watch host CPU, load, disk and network errors, APM latency, throughput and Apdex, RUM page load, log ingest, Error Tracking issues, Postgres, and Redis. Polylane also makes checks from the widgets of your dashboards and from up to ten of your metric and log-count monitors. 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 the resources that send telemetry to Datadog to a Datadog node in the context graph. These resources include hosts, AWS resources of the AWS accounts that both Datadog and Polylane read, and Kubernetes deployments.

During an investigation

Agents search logs, query metrics, aggregate APM spans, and read monitors, dashboards, SLOs, hosts, events, Datadog incidents, and the service dependency map. Agents can also create monitors, dashboards, and SLOs, mute a monitor, or schedule a downtime. Each change needs safety review and approval before it runs.

Polylane checks both keys every six hours. Under Credentials on the integration page, verify the saved keys or replace them.

Application key scopes

An application key without scopes has the same access as the user that created it, and it works without changes.

If you scope the key, include user_app_keys. Polylane cannot connect without it. Also include these scopes:

  • logs_read_data, timeseries_query, metrics_read, apm_read
  • monitors_read, monitors_write, monitors_downtime
  • dashboards_read, slos_read, hosts_read, events_read, incident_read
  • aws_configuration_read
  • create_webhooks

Disconnecting

Disconnecting deletes the polylane webhook. It does not remove the @webhook-polylane mention or the polylane:managed tag from your monitors. Remove them from each monitor, and from your Terraform configs. Then revoke the application key and the API key in Datadog.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Datadog's API lets it remove. The following stays until you remove it yourself:

  • @webhook-polylane appended to every monitor message
  • polylane:managed tag on every monitor
Terminal
polylane integration disconnect <id>

Tools

12

Operations agents can perform in threads.

Api
Call any Datadog REST endpoint that lacks a dedicated tool
Query Metrics
Query time-series metrics from Datadog
Search Logs
Search and filter log entries in Datadog
Dashboards
Read or create Datadog dashboards
Monitors
Read, create, or mute Datadog monitors
Incidents
Read Datadog incidents
S L Os
Read or create Datadog Service Level Objectives (SLOs)
Spans
Query and aggregate Datadog APM spans and traces
List Hosts
List hosts reporting to Datadog
List Events
List events from Datadog
Get Service Dependencies
Get service dependency map from Datadog APM
Create Downtime
Schedule a maintenance downtime in Datadog