API referenceConsole
observability
Polylane runs PromQL, LogQL and TraceQL through your Grafana datasources, reads the dashboards you trust, and flags alert rules that fire or break.

Connect

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

Terminal
polylane integration connect --type grafana

Disconnect

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

Terminal
polylane integration disconnect <id>

Tools

6

Operations agents can perform in threads.

grafanaApi
Call any Grafana HTTP API endpoint that lacks a dedicated tool
grafanaDashboards
Search Grafana dashboards, read their panel definitions, and list folders
grafanaDatasources
List Grafana datasources and check their health
grafanaQuery
Run a datasource query (PromQL, LogQL, and more) through Grafana
grafanaAlertRules
Read Grafana alert rules, their live state, and firing alerts
grafanaAnnotations
Read or create Grafana annotations to mark events on charts