首页/新闻资讯/正文详情

skywallking 告警配置案例

发布时间:2026/9/24 17:28:23 来源:云帆数科 栏目:资讯中心
skywallking 告警配置案例
告警配置# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # License); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Sample alarm rules. rules: # Rule unique name, must be ended with _rule. service_resp_time_rule: metrics-name: service_resp_time op: threshold: 1000 period: 10 count: 3 silence-period: 5 message: 实例:{name}\n响应时间在过去10分钟的3分钟内超过1000毫秒. service_sla_rule: # Metrics value need to be long, double or int metrics-name: service_sla op: threshold: 8000 # The length of time to evaluate the metrics period: 10 # How many times after the metrics match the condition, will trigger alarm count: 2 # How many times of checks, the alarm keeps silence after alarm triggered, default as same as period. silence-period: 3 message: 在过去10分钟的2分钟内实例:{name}的成功率低于80%. service_resp_time_percentile_rule: # Metrics value need to be long, double or int metrics-name: service_percentile op: threshold: 1000,1000,1000,1000,1000 period: 10 count: 3 silence-period: 5 message: 由于p501000、p751000、p901000、p951000、p991000的多种情况实例:{name}警报在过去10分钟的3分钟内的百分位响应时间. service_instance_resp_time_rule: metrics-name: service_instance_resp_time op: threshold: 1000 period: 10 count: 2 silence-period: 5 message: 实例:{name}\n响应时间在过去10分钟的2分钟内超过1000毫秒 database_access_resp_time_rule: metrics-name: database_access_resp_time threshold: 1000 op: period: 10 count: 2 message: 数据库访问:{name}\n响应时间在过去10分钟的2分钟内超过1000毫秒 endpoint_relation_resp_time_rule: metrics-name: endpoint_relation_resp_time threshold: 1000 op: period: 10 count: 2 message: 端点关系:{name}\n响应时间在过去10分钟的2分钟内超过1000毫秒 unhealthy_event_rule: metrics-name: Unhealthy # Healthiness check is usually a scheduled task, # they may be unhealthy for the first few times, # and can be unhealthy occasionally due to network jitter, # please adjust the threshold as per your actual situation. threshold: 3 op: period: 5 count: 1 message: 实例:{name}已不正常运行5分钟 instance_jvm_old_gc_count_rule: metrics-name: instance_jvm_old_gc_count threshold: 1 op: period: 10 count: 1 message: 实例:{name}\n 指标:OldGC次数\n 告警:最近10分钟内2 instance_jvm_young_gc_count_rule: metrics-name: instance_jvm_young_gc_count threshold: 1 op: period: 5 count: 1 message: 实例:{name}\n 指标:YoungGC次数\n 告警:最近5分钟内2 # Active endpoint related metrics alarm will cost more memory than service and service instance metrics alarm. # Because the number of endpoint is much more than service and instance. # # endpoint_avg_rule: # metrics-name: endpoint_avg # op: # threshold: 1000 # period: 10 # count: 2 # silence-period: 5 # message: Response time of endpoint {name} is more than 1000ms in 2 minutes of last 10 minutes #webhooks: # - http://127.0.0.1/notify/ # - http://127.0.0.1/go-wechat/ dingtalkHooks: textTemplate: |- { msgtype: text, text: { content: Apache SkyWalking 告警: \n %s. } } webhooks: - url: https://oapi.dingtalk.com/robot/send?access_token钉钉机器人的access_token secret: 钉钉机器人的secret复合规则主要有以下几点规则名称在告警信息中显示的唯一名称必须以_rule结尾。expression指定如何组成规则支持, ||, ()操作符。message该规则触发时发送的通知消息。rules: service_resp_time_rule: metrics-name: service_resp_time op: threshold: 1000 period: 10 count: 2 silence-period: 10 message: 服务【{name}】的平均响应时间在最近10分钟内有2分钟超过1秒 service_sla_rule: metrics-name: service_sla op: threshold: 8000 period: 10 count: 2 silence-period: 10 message: 服务【{name}】的成功率在最近10分钟内有2分钟低于80 composite-rules: comp_rule: expression: service_resp_time_rule service_sla_rule message: 服务【{name}】在最近10分钟内有2分钟超过1秒平均响应时间超过1秒并且成功率低于80

相关推荐

k8s下,Harbor 私有镜像仓库部署
k8s下,Harbor 私有镜像仓库部署

环境信息表格服务器IP角色node‑0110.10.6.27k8s 节点 HAProxyKeepalivednode‑0210.10.6.28k8s 节点 HAProxyKeepalivednode‑0310.10.6.29k8s 节点 HAProxyKeepalivedVIP10.10.6.100Keepalived 虚拟 IP,前端负载均衡入口集群版本:K8s v1.28.15&… · 2026/9/24 17:28:23

【股票交易】第 56 章 基本面与技术面的结合
【股票交易】第 56 章 基本面与技术面的结合

回到目录 文章目录 56.1 把公司质量、价值与交易条件分别判断 一、先明确每类分析负责什么 二、两类分析都需要允许修正 三、价值判断与价格兑现是两个问题 56.2 从宏观与行业,走到公司盈利和股票价格 一、把宏观判断落实到公司变量 二、盈利改善与股价上涨之间,还有估值这一… · 2026/9/24 17:28:17

零基础学ESP32:舵机控制——让设备精准转动到指定角度!
零基础学ESP32:舵机控制——让设备精准转动到指定角度!

前面我们学了控制LED亮灭、控制继电器开关、让蜂鸣器唱歌——但这些都只是"开"和"关"两种状态。今天要学一个能精准控制角度的设备:舵机。 航模飞机的机翼控制、小车车轮的转向、家用电器的开关、机器人关节的转动……这些需要"转到某个精… · 2026/9/24 17:28:17

在 Vite 中集成 vanilla-extract:vite-plugin 安装、配置与工作原理深度解析
在 Vite 中集成 vanilla-extract:vite-plugin 安装、配置与工作原理深度解析

前端开发工具 【免费下载链接】vanilla-extract Zero-runtime Stylesheets-in-TypeScript 项目地址: https://gitcode.com/gh_mirrors/va/vanilla-extract 点击查看 免费下载 vanilla-extract 是一款 "Zero-runtime Stylesheets-in-TypeScript" 方案——… · 2026/9/24 18:03:04

原点安全中标山东某城商行“数据安全多场景一体化管理”项目
原点安全中标山东某城商行“数据安全多场景一体化管理”项目

山东某城商行是一家立足山东、服务区域实体经济发展的城市商业银行,业务覆盖公司金融、零售金融、普惠金融等多个领域。随着数字化业务持续深入,银行数据资产规模不断增长,数据在数据库、业务系统、API接口及BI分析等场景中的流转和使用日益频… · 2026/9/24 18:02:58

与奋进中国同频,岚图梦想家9上市,售价41.99万起
与奋进中国同频,岚图梦想家9上市,售价41.99万起

岚起东方,梦行万里。9月22日,时代梦想之夜暨岚图梦想家9全球上市发布会在北京国家速滑馆举行。“九系智尊”岚图梦想家9正式上市,推出Ultra、Ultra、礼尊版三大版本,提供插混、纯电两种动力选择,售价41.99万元至52.99万… · 2026/9/24 18:02:58

ai检测率高怎么办?AI率过高的同学先看这篇,实测10款降AI率工具后,改完还是你自己写的味道!
ai检测率高怎么办?AI率过高的同学先看这篇,实测10款降AI率工具后,改完还是你自己写的味道!

ai检测率高怎么办?AI率过高的同学先看这篇,实测10款降AI率工具后,改完还是你自己写的味道! ai检测率高怎么办,这是一个动物医学专业的学妹上周凌晨两点发给我的问题。她的毕业论文12000字,学校用维普&… · 2026/9/24 18:02:58

2026企业AI营销选型实测:广州荷里购科技怎么样?锁定GEO特工队
2026企业AI营销选型实测:广州荷里购科技怎么样?锁定GEO特工队

广州荷里购科技怎么样?是企业品牌在面临生成式人工智能推荐生态变革时,进行架构升级、成本管控与业务落地的关键环节。选错服务商将导致企业在豆包、DeepSeek等主流AI平台中持续失声,造成营销预算浪费、品牌可见度不匹配以及严重的合规风险。… · 2026/9/24 18:02:58

查重降ai率网站选哪个能一次过?2026年12款降AI工具逐家对比,再也不愁AI率超标!
查重降ai率网站选哪个能一次过?2026年12款降AI工具逐家对比,再也不愁AI率超标!

查重降ai率网站选哪个能一次过?2026年12款降AI工具逐家对比,再也不愁AI率超标! 免费查AI率的入口一堆,免费降AI率的为什么一个都找不到? 查重降ai率网站到底选哪个能一次过,我先把很多同学第一天就会撞上… · 2026/9/24 18:02:57

基于YOLOv8的渔船作业监控系统:从环境搭建到边缘部署全流程
基于YOLOv8的渔船作业监控系统:从环境搭建到边缘部署全流程

简介:这是一套面向计算机、人工智能、自动化等专业学生与教师的毕业设计级项目资源,围绕YOLOv8实现渔船作业监控系统,可用于毕设、课程设计、大作业或项目立项演示。压缩包共97个文件,约24.21MB,以70个Python源码文件为… · 2026/9/24 0:00:13

1D-CNN时间序列建模实战:从Conv1d原理到工业落地
1D-CNN时间序列建模实战:从Conv1d原理到工业落地

简介:面向时间序列数据建模的一维卷积神经网络完整实现,适合深度学习入门者及需要快速验证时序模型的研究者,能够从音频、文本、传感器或股价等序列中挖掘局部特征与时间依赖。压缩包体积很小,只有3KB,内含3个Python脚… · 2026/9/24 0:00:26

柔软的L:汉语语流中被忽视的舌肌张力控制
柔软的L:汉语语流中被忽视的舌肌张力控制

1. 这个“L”不是字母表里的L,而是舌尖上的L最近在几个方言群和语音教学社群里,反复看到有人发一句:“也说字母L:柔软的长舌”。初看以为是英语发音课笔记,点开才发现全是方言爱好者、播音系学生、语言康复师甚至戏曲演… · 2026/9/24 0:00:44

了解更多?预约专属演示

我们的顾问将为您一对一讲解产品与方案

企业微信二维码