夜莺-Nightingale
夜莺V7
项目介绍 功能概览
部署升级 部署升级
数据接入 数据接入
告警管理 告警管理
数据查看 数据查看
功能介绍 功能介绍
API FAQ
夜莺V6
项目介绍 架构介绍
快速开始 快速开始
黄埔营
安装部署 安装部署
升级
采集器 采集器
使用手册 使用手册
API API
数据库表结构 数据库表结构
FAQ FAQ
开源生态
Prometheus
版权声明
第1章:天降奇兵 第1章:天降奇兵
第2章:探索PromQL 第2章:探索PromQL
第3章:Prometheus告警处理 第3章:Prometheus告警处理
第4章:Exporter详解 第4章:Exporter详解
第5章:数据与可视化 第5章:数据与可视化
第6章:集群与高可用 第6章:集群与高可用
第7章:Prometheus服务发现 第7章:Prometheus服务发现
第8章:监控Kubernetes 第8章:监控Kubernetes
第9章:Prometheus Operator 第9章:Prometheus Operator
参考资料

Scenario 1: Configure MySQL Single Condition Alert Rule

Value Fields

In the SQL query condition, select the column name you want as the value field for the query result. As shown below, I used count(*) and gave it an alias count, then used the alias count as the value field to get the result of condition A.

mysql001

Label Fields

Use the GROUP BY field as the label field, and the alert will be grouped by this field.

Scenario 2: Apply Filters in WHERE Clause

As shown in the query statement below: count the active alerts with severity levels 1, 2, and 3.

SELECT COUNT(*) AS count FROM n9e_v6.alert_cur_event WHERE severity IN (1,2,3);

mysql002

When the alert is triggered, only the count value will be displayed.

mysql003

Scenario 3: Apply Filters in WHERE Clause and Group Alerts

Set the query condition to group by severity and set severity as the label field.

SELECT severity as severity, COUNT(*) AS count FROM n9e_v6.alert_cur_event WHERE severity IN (1,2,3) GROUP BY severity;

mysql004

By comparing the alert time and data preview, you can see that after grouping by severity, the alerts are grouped by the label field.

mysql005

mysql006

Scenario 4: Multiple Query Condition Expression Mode

Configure multiple SQL query conditions and apply threshold alerting to the results of both query conditions.

mysql007

mysql008

快猫星云 联系方式 快猫星云 联系方式
快猫星云 联系方式
快猫星云 联系方式
快猫星云 联系方式
快猫星云
OpenSource
开源版
Flashcat
Flashcat