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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,告警级别:预警(发布企业微信通知)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: 一般不写行内注释

},
}