Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 调增 gcs-mysql 慢查询阈值 #1800

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SheepSheepChen
Copy link
Collaborator

告警策略太敏感,且等级为 '致命',不太合适。
原策略:
‘查询时间 >= 1s ’ 判断为慢查询记录(db 侧的判断)
'慢查询记录 >0 ‘ 且 满足10个周期

修改后:
‘查询时间 >= 1s ’ 判断为慢查询记录(db 侧的判断)
'慢查询记录 >5 ‘ 且 满足10个周期

@SheepSheepChen SheepSheepChen marked this pull request as ready for review December 12, 2024 01:54
@@ -62,6 +62,6 @@
AlertCode.GCS_MYSQL_SLOW_QUERY.value: {
"display_name": _("GCS-MySQL 慢查询新增"),
"metric_label_names": ["gcs_mysql_user"],
"threshold_expr": "> 0", # 慢查询增长超过 0
"threshold_expr": "> 5", # 慢查询增长超过 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否这样调整更合适?

  • 慢查询数量为:1,告警级别:提醒(可以不发通知,但是在我们的首页能查询到)
  • 慢查询数量为: 5,告警级别:预警(发布企业微信通知)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants