10-skywalking告警

https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/backend-alarm.md

5.1:告警指标

bash 复制代码
~$ vim /apps/apache-skywalking-apm-bin/config/oal/core.oal
service_resp_time # 服务的响应时间
service_sla # 服务http请求成功率SLV,比如99%
service_cpm # 表示每分钟吞吐量
service_percentile # 指定响应时间百分比,即p99,p95,p75,p50的数据统计结果
service_apdex # 应用性能指数、

// Endpoint scope metrics
endpoint_cpm # 端点每分钟吞吐量
endpoint_resp_time # 端点响应时间
endpoint_sla # 端点http请求成功率SLA,比如99%
endpoint_percentile # 端点的最近多少数据范围内的响应时间百分比,即p99,p95,p75统计结果

5.2:告警配置

bash 复制代码
~$ vim /apps/apache-skywalking-apm-bin/config/alarm-settings.yml
rules:  #定义rule规则
  service_cpm_rule: #唯一的规则名称,必须以_rule结尾
    # Metrics value need to be long, double or int
    metrics-name: service_cpm  #指标名称
    op: ">" #操作符,>, >=, <, <=, ==
    threshold: 1 #指标阈值
    # The length of time to evaluate the metrics
    period: 2 #评估指标的间隔周期
    # How many times after the metrics match the condition, will trigger alarm
    count: 1 #匹配成功多少次就会触发告警
    # How many times of checks, the alarm keeps silence after alarm triggered, default as same as period.
    #silence-period: 3
    silence-period: 2 #触发告警后的静默时间
    message: dubbo-provider service_cpm 大于1了 #告警信息

dingtalkHooks:
  textTemplate: |-
    {
      "msgtype": "text",
      "text": {
        "content": "Apache SkyWalking Alarm: \n %s."
      }
    }
  webhooks:
    - url: https://oapi.dingtalk.com/robot/send?access_token=3f773a20ef885659112b0d49086ca60d575562a2b1f113fbe215703366bb66f9 

5.3:告警验证

相关推荐
Mr_sun.8 分钟前
Day07——RabbitMQ-高级
分布式·rabbitmq
Qiuner2 小时前
Spring Boot 配置文件高级实战指南 热更新/动态配置/安全加密/分布式同步/环境变量注入
spring boot·分布式·安全
weixin_446260852 小时前
Milvus:高效能的云原生向量数据库
数据库·云原生·milvus
无心水2 小时前
【分布式利器:事务】4、SAGA模式:长事务的最佳选择?
分布式·seata·分布式事务·saga模式·tcc·分布式利器·长事务
shuidaoyuxing4 小时前
对 微服务 进行一次系统化、结构化的全面讲解
微服务·云原生·架构
lang201509284 小时前
Kafka延迟操作机制深度解析
分布式·python·kafka
zl9798999 小时前
RabbitMQ-下载安装与Web页面
linux·分布式·rabbitmq
Mr_sun.11 小时前
Day11——微服务高级
微服务·云原生·架构
优质&青年13 小时前
【Operator pormetheus监控系列四----.alertmanager和Rules服务配置】
运维·云原生·kubernetes·prometheus
AKAMAI13 小时前
从 Cloudflare 服务中断,看建立多维度风险应对机制的必要
人工智能·云原生·云计算