当前位置: 首页 > news >正文

SkyWalking 支持的告警通知方式(Alarm Hooks)类型

告警通知类型说明

  • webhook: 通用的 Webhook 通知方式,可以将告警发送到自定义的 HTTP 接口
  • gRPC: 通过 gRPC 协议发送告警通知
  • wechat: 发送到企业微信(WeChat Work)应用
  • slack: 发送到 Slack 协议的聊天 workspace
  • dingtalk: 发送到钉钉(DingTalk)应用
  • feishu: 发送到飞书(Feishu/Lark)应用
  • welink: 发送到华为 Welink 应用
  • discord: 发送到 Discord 聊天平台
  • pagerduty: 发送到 PagerDuty 运维平台

告警模版:

rules:# Rule unique name, must be ended with `_rule`.endpoint_percent_rule:expression: sum(endpoint_percent < 75) >= 3period: 10# How many times of checks, the alarm keeps silence after alarm triggered, default as same as period.silence-period: 10message: Successful rate of endpoint {name} is lower than 75%service_percent_rule:expression: sum(service_percent < 85) >= 4# [Optional] Default, match all services in this metricsinclude-names:- service_a- service_bexclude-names:- service_cperiod: 10endpoint_percent_more_rule:expression: sum(endpoint_percent > 60) >= 3# The length of time to evaluate the metricsperiod: 10# How many times of checks, the alarm keeps silence after alarm triggered, default as same as period.silence-period: 10message: Successful rate of endpoint {name} is higher than 60%hooks:- "slack.custom1"- "pagerduty.custom1"comp1_rule:expression: sum((endpoint_percent > 60) * (endpoint_percent < 75)) >= 3period: 10silence-period: 10message: xxxxxcomp2_rule:expression: sum((endpoint_percent > 60) * (endpoint_percent < 75)) >= 3period: 10silence-period: 10message: xxxxxhooks:- "slack.default"- "slack.custom1"- "pagerduty.custom1"hooks:webhook:default:is-default: trueurls:- http://127.0.0.1/notify/- http://127.0.0.1/go-wechat/custom1:urls:- http://127.0.0.1/custom1headers:Authorization: Bearer bearer_tokenx-company-header: arbitrary-additional-http-headersgRPC:default:is-default: truetarget-host: 127.0.0.1target-port: 9888slack:default:is-default: truetext-template: |-{"type": "section","text": {"type": "mrkdwn","text": ":alarm_clock: *Apache Skywalking Alarm* \n **%s**."}}webhooks:- https://hooks.slack.com/services/x/y/zsssscustom1:text-template: |-{"type": "section","text": {"type": "mrkdwn","text": ":alarm_clock: *Apache Skywalking Alarm* \n **%s**."}}webhooks:- https://hooks.slack.com/services/x/y/zsssswechat:default:is-default: truetext-template: |-{"msgtype": "text","text": {"content": "Apache SkyWalking Alarm: \n %s."}}webhooks:- https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=dummy_keydingtalk:default:is-default: truetext-template: |-{"msgtype": "text","text": {"content": "Apache SkyWalking Alarm: \n %s."}}webhooks:- url: https://oapi.dingtalk.com/robot/send?access_token=dummy_tokensecret: dummysecret- url: https://oapi.dingtalk.com/robot/send?access_token=dummy_token2secret:feishu:default:is-default: truetext-template: |-{"msg_type": "text",# at someone with feishu_user_ids# "ats": "feishu_user_id_1,feishu_user_id_2","content": {"text": "Apache SkyWalking Alarm: \n %s."}}webhooks:- url: https://open.feishu.cn/open-apis/bot/v2/hook/dummy_tokensecret: dummysecret- url: https://open.feishu.cn/open-apis/bot/v2/hook/dummy_token2secret:welink:default:is-default: truetext-template: "Apache SkyWalking Alarm: \n %s."webhooks:# you may find your own client_id and client_secret in your app, below are dummy, need to change.- client-id: "dummy_client_id"client-secret: dummy_secret_keyaccess-token-url: https://open.welink.huaweicloud.com/api/auth/v2/ticketsmessage-url: https://open.welink.huaweicloud.com/api/welinkim/v1/im-service/chat/group-chat# if you send to multi group at a time, separate group_ids with commas, e.g. "123xx","456xx"group-ids: "dummy_group_id"# make a name you like for the robot, it will display in grouprobot-name: robotpagerduty:default:is-default: truetext-template: "dummy_text_template"integration-keys:- dummy_key- dummy_key2custom1:text-template: "Apache SkyWalking Alarm: \n %s."integration-keys:#    # you can find your integration key(s) on the Events API V2 integration page for your PagerDuty service(s).#    # (you may need to create an Events API V2 integration for your PagerDuty service if you don't have one yet)#    # below are dummy keys that should be replaced with your own integration keys.- dummy_key- dummy_key2

注意:缩进只能用空格,不能用 tab(\t)


文章转载自:

http://ReAwZdOC.Lzrpy.cn
http://4gpCeOKM.Lzrpy.cn
http://ET6hFflb.Lzrpy.cn
http://B4SE8tuC.Lzrpy.cn
http://OGV4fiOY.Lzrpy.cn
http://x25qnBCU.Lzrpy.cn
http://ociblKad.Lzrpy.cn
http://JGtxWvEN.Lzrpy.cn
http://c4ukzNum.Lzrpy.cn
http://5SH5V8j2.Lzrpy.cn
http://hUT8lXG6.Lzrpy.cn
http://iJqCzadd.Lzrpy.cn
http://UQLg8ckh.Lzrpy.cn
http://8kCoIF3H.Lzrpy.cn
http://SrjeJ0yG.Lzrpy.cn
http://uJhPGJfO.Lzrpy.cn
http://FV75Fm3I.Lzrpy.cn
http://879CD0HI.Lzrpy.cn
http://wOifR4kI.Lzrpy.cn
http://xCJ10UhP.Lzrpy.cn
http://pVMAruVE.Lzrpy.cn
http://WARIfZ2c.Lzrpy.cn
http://bXetU7ZD.Lzrpy.cn
http://vDYdgzkP.Lzrpy.cn
http://NUM8dUVY.Lzrpy.cn
http://Z9rIaK5m.Lzrpy.cn
http://N7wMp4xb.Lzrpy.cn
http://yf9eMuGC.Lzrpy.cn
http://pnM6HrIe.Lzrpy.cn
http://3rwIAElc.Lzrpy.cn
http://www.dtcms.com/a/365353.html

相关文章:

  • 吱吱企业通讯软件以安全为核心,构建高效沟通与协作一体化平台
  • 驱动开发系列69 - GLSL编译器实现 - 符号表的定义
  • 【SQL Server 2022】保姆级SQL Server 详细图文下载安装教程
  • Unity学习----【进阶】Addressables(一)--概述与简单的使用
  • 涉私数据安全与可控匿名化利用机制研究(上)
  • 代码随想录算法训练营第四十三天|LeetCode300. 最长递增子序列,LeetCode674. 最长连续递增序列,LeetCode718. 最长重复子数组
  • 【C语言数组操作:从指针到下标访问】
  • 【微信小程序预览文件】(PDF、DOC、DOCX、XLS、XLSX、PPT、PPTX)
  • 1分钟生成爆款相声对话视频!Coze智能体工作流详细搭建教程,小白也能轻松上手
  • daily notes[9]
  • 【音视频】FMP4 介绍
  • 从 MMLU 到 HumanEval:为什么评估大型语言模型(LLM)的基准至关重要?
  • 策略模式 + 工厂模式
  • 海伯森检测应用案例之--光学板轮廓及瑕疵检测
  • 嵌入式 Linux 启动流程详解 (以 ARM + U-Boot 为例)
  • [Ai Agent] 打造一个真正可落地的客服智能体
  • 论文理解:Reflexion: Language Agents with Verbal Reinforcement Learning
  • 封装一个redis获取并解析数据的工具类
  • 基于web的云智教育在线平台设计与实现
  • 利用 openssl api 实现 TLS 双向认证
  • Jenkins和Fastlane的原理、优缺点、用法、如何选择
  • SpringAI Alibaba Graph 流式对话
  • python sqlalchemy模型的建立
  • 嵌入式硬件学习-2
  • Algorithms library
  • Qoder如何免费续杯,立即参与实践分享,赢 1000Credits
  • 解决windows下火狐浏览器开机会同时启动两个或多个页面
  • 为何quest3设备会强制更新,如何屏蔽更新
  • GoogleNet:更深的网络与更高的效率
  • 大模型的偏见:从训练数据到推理结果,如何检测与修正?