Feishu / Lark#
Alertmanager 没有内置 Feishu / Lark receiver,通常使用 webhook adapter,把 Alertmanager webhook payload 转换成 Feishu bot message。
1. API / GitHub#
Feishu custom bot docs:
Known adapter examples:
2. Alertmanager Config#
route:
receiver: feishu-platform
receivers:
- name: feishu-platform
webhook_configs:
- url: http://alertmanager-feishu:8080/webhook
send_resolved: true3. Message Fields#
Recommended:
title:
[FIRING] HighHttpErrorRate
body:
Severity: critical
Service: order-api
Env: prod
Summary: High HTTP error rate
Dashboard: https://grafana.example.com/d/order-api
Runbook: https://wiki.example.com/runbooks/order-api-5xx4. Notes#
Best Practice:
bot webhook 使用 Secret 管理
开启签名校验
用不同 bot 区分 critical / warning