observability
Honeycomb
Connect your Honeycomb environment to let agents query datasets, check trigger statuses, and investigate production incidents. Agents use your observability data to understand system behavior and identify root causes.
连接
从终端连接Honeycomb。传入--help查看Honeycomb接受的标志。
Terminal
polylane integration connect --type honeycomb你想查询的Honeycomb环境的API密钥。
连接Honeycomb,让智能体在调查期间可以查询你的数据集和链路追踪。
设置
- 在Honeycomb中,进入Team Settings → API Keys。
- 选择包含你希望智能体查询的数据的环境。
- 创建一个密钥,或复用一个,具有read权限。
- 选择你的区域(US或EU)。
- 把API密钥粘贴到Polylane中。
你可以通过为每个环境添加一个单独的集成来连接多个环境。你的密钥在存储前加密,智能体永远看不到它。
连接会创建一个名为polylane的Webhook接收方,并让每个触发器订阅它,这样触发器告警一触发就落到Polylane并得到分诊。
智能体能做什么
- 查询数据集并运行分析
- 检查链路追踪,跟随一个请求跨越多个服务
- 在调查期间检查触发器状态
断开连接
在Polylane中断开Honeycomb,然后在Honeycomb中撤销该API密钥。断开连接会从你的触发器中移除polylane接收方,所以请同时把它从Terraform配置中删掉。
把Honeycomb的告警与你由Terraform管理的资源一起注册到Polylane。
一个周期性同步让每个触发器订阅polylane接收方,所以由Terraform管理的触发器在该接收方也进入其Terraform配置之前会显示漂移。用数据源查找该接收方并把它附加到每个触发器:
data "honeycombio_recipient" "polylane" {
type = "webhook"
detail_filter {
name = "name"
value = "polylane"
}
}
resource "honeycombio_trigger" "example" {
# ...
recipient {
id = data.honeycombio_recipient.polylane.id
}
}
断开该集成会从你的触发器中移除polylane接收方,所以请同时把它从Terraform配置中删掉。
断开连接
断开连接会停止所有同步和检查,并删除Polylane持有的凭据。 Polylane在Honeycomb中设置的一切也会被移除;不会留下任何东西。
Terminal
polylane integration disconnect <id>工具
7智能体可以在线程中执行的操作。
Api
Call any Honeycomb REST endpoint that lacks a dedicated tool
Run Query
Run a query against a Honeycomb dataset
Datasets
Read Honeycomb datasets and their columns
Triggers
Read or create Honeycomb triggers (alerts)
Boards
Read or create Honeycomb boards (dashboards)
S L Os
Read or create Honeycomb Service Level Objectives (SLOs)
Markers
List or create markers in a Honeycomb dataset