observability
Axiom
Connect your Axiom organization to let agents run APL queries, monitor alert statuses, and explore your datasets. Agents can analyze your telemetry data to help troubleshoot issues and understand system performance.
连接
从终端连接Axiom。传入--help查看Axiom接受的标志。
Terminal
polylane integration connect --type axiom限定于你希望智能体查询的数据集的API令牌。
连接Axiom,让智能体可以用APL(Axiom Processing Language)查询你的日志和事件数据。
设置
- 在Axiom → Organization Settings中找到你的区域(US是
api.axiom.co,EU是api.eu1.axiom.co)。 - 在Axiom中,进入Settings → API Tokens并创建一个新令牌。
- 授予该令牌对你希望智能体查询的数据集的读取访问权限。
- 把令牌粘贴到Polylane中。Polylane验证它并连接。
你的令牌在存储前加密,智能体永远看不到它。
连接会创建一个名为polylane的自定义Webhook通知器,并把它添加到每个监控器,这样监控器告警一触发就落到Polylane并得到分诊。
智能体能做什么
- 跨你的数据集运行APL查询
- 探索数据集的模式和字段
- 在调查期间监控告警状态
断开连接
在Polylane中断开Axiom,然后在Axiom中撤销该API令牌。断开连接会从你的监控器中移除polylane通知器,所以请同时把它从Terraform配置中删掉。
把Axiom的告警与你由Terraform管理的资源一起注册到Polylane。
一个周期性同步把polylane通知器添加到每个监控器,所以由Terraform管理的监控器在该通知器id也进入其Terraform配置之前会显示漂移。在Axiom的Monitors → Notifiers下(名为polylane的通知器)或用Axiom API的GET /v2/notifiers找到该id,然后把它包含在每个监控器上:
resource "axiom_monitor" "example" {
# ...
notifier_ids = concat(var.notifier_ids, [var.polylane_notifier_id])
}
断开该集成会从你的监控器中移除polylane通知器,所以请同时把它从Terraform配置中删掉。
断开连接
断开连接会停止所有同步和检查,并删除Polylane持有的凭据。 Polylane在Axiom中设置的一切也会被移除;不会留下任何东西。
Terminal
polylane integration disconnect <id>工具
9智能体可以在线程中执行的操作。
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