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

[Question] Mysql Monitor Template fields And Monitor Rule #2289

Open
QBH-insist opened this issue Jul 16, 2024 · 6 comments
Open

[Question] Mysql Monitor Template fields And Monitor Rule #2289

QBH-insist opened this issue Jul 16, 2024 · 6 comments
Labels
question Further information is requested

Comments

@QBH-insist
Copy link
Contributor

Question

"Version": v1.6

  1. The Chinese explanation for the 'Connections' field in the MySQL monitoring template seems to be incorrect

image

https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html
image

  1. Then, I want to set the rule '${threads_connected} >=({max_connections}*0.9)'. Is this rule available and feasible, considering that these two data points are located on different tabs?
@QBH-insist QBH-insist added the question Further information is requested label Jul 16, 2024
@tomsun28
Copy link
Contributor

can you help sumbit a pr to fix it?

@Yanshuming1
Copy link
Member

Second, are you trying to set threshold rules? General calculates calculates should not write '>' matches, and they must be under the same name if you want to set display

@QBH-insist
Copy link
Contributor Author

can you help sumbit a pr to fix it?

#2294

@QBH-insist
Copy link
Contributor Author

QBH-insist commented Jul 17, 2024

Second, are you trying to set threshold rules? General calculates calculates should not write '>' matches, and they must be under the same name if you want to set display

Yes, I was wondering if it's possible to compare ${BasicInfo#MaxConnections} with ${ThreadInfo#ThreadsConnected} within a mysql threshold rule

@Yanshuming1
Copy link
Member

Second, are you trying to set threshold rules? General calculates calculates should not write '>' matches, and they must be under the same name if you want to set display

Yes, I was wondering if it's possible to compare ${BasicInfo#MaxConnections} with ${ThreadInfo#ThreadsConnected} within a mysql threshold rule

No, he collects data based on name each time, not all name data at one time, and the calculation of alarms can only be calculated based on the fields under name。
@tomsun28 Am I explaining this correctly?

@tomsun28
Copy link
Contributor

hi, yes, not support now. But this is a common requirement. Let's see how to implement it later.

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

No branches or pull requests

3 participants