10000 GitHub - peterchenhc/alertmanaer-feishu-webhook
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

peterchenhc/alertmanaer-feishu-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alertmanager Feishu Webhook

Webhook service support send Prometheus 2.0 alert message to Feishu.

How To Use

cd cmd/webhook
go build
webhook -defaultRobot=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxx
go run webhook.go -defaultRobot=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxx
  • -defaultRobot: default feishu webhook url, all notifaction from alertmanager will direct to this webhook address.

Or you can overwrite by add annotations to Prometheus alertrule to special the feishu webhook for each alert rule.

groups:
- name: hostStatsAlert
  rules:
  - alert: hostCpuUsageAlert
    expr: sum(avg without (cpu)(irate(node_cpu{mode!='idle'}[5m]))) by (instance) > 0.85
    for: 1m
    labels:
      severity: page
    annotations:
      summary: "Instance {{ $labels.instance }} CPU usgae high"
      description: "{{ $labels.instance }} CPU usage above 85% (current value: {{ $value }})"
      feishuRobot: "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxx"

About

No description, website, or topics provided.

Resources

Activity 458D

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0