hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Question] Mysql Monitor Template fields And Monitor Rule

Open QBH-insist opened this issue 1 year ago • 6 comments

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 avatar Jul 16 '24 10:07 QBH-insist

can you help sumbit a pr to fix it?

tomsun28 avatar Jul 16 '24 12:07 tomsun28

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

Yanshuming1 avatar Jul 16 '24 13:07 Yanshuming1

can you help sumbit a pr to fix it?

https://github.com/apache/hertzbeat/pull/2294

QBH-insist avatar Jul 17 '24 02:07 QBH-insist

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

QBH-insist avatar Jul 17 '24 02:07 QBH-insist

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?

Yanshuming1 avatar Jul 17 '24 02:07 Yanshuming1

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

tomsun28 avatar Jul 17 '24 14:07 tomsun28