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收件者並讓每個trigger訂閱它,所以trigger警示會落到Polylane並在觸發時被分流。
代理能做什麼
- 查詢資料集並執行分析
- 檢視追蹤,跟著一個請求穿過多個服務
- 在調查期間檢查trigger狀態
中斷連接
在Polylane中斷Honeycomb的連接,然後在Honeycomb中撤銷該API金鑰。中斷連接會從你的trigger中移除polylane收件者,所以請同時從Terraform設定中拿掉它。
把Honeycomb的警示與你以Terraform管理的資源一起註冊到Polylane。
一個週期性同步會讓每個trigger訂閱polylane收件者,所以以Terraform管理的trigger在該收件者也進入其Terraform設定之前會顯示漂移。用資料來源查出該收件者,並把它附加到每個trigger:
data "honeycombio_recipient" "polylane" {
type = "webhook"
detail_filter {
name = "name"
value = "polylane"
}
}
resource "honeycombio_trigger" "example" {
# ...
recipient {
id = data.honeycombio_recipient.polylane.id
}
}
中斷整合的連接會從你的trigger中移除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