You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/args/argument_list.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ type ArgumentList struct {
20
20
OldPasswordsbool`default:"false" help:"Allow the use of old passwords: https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_old_passwords"`
21
21
ShowVersionbool`default:"false" help:"Display build information and exit."`
22
22
EnableQueryMonitoringbool`default:"false" help:"Enable collection of detailed query performance metrics."`
23
+
QueryMonitoringOnlybool`default:"false" help:"Enable collection of only detailed query performance metrics, excluding other metrics."`
23
24
SlowQueryMonitoringFetchIntervalint`default:"30" help:"Fetch interval in seconds for grouped slow queries. Should match the interval in mysql-config.yml."`
24
25
QueryMonitoringResponseTimeThresholdint`default:"500" help:"Threshold in milliseconds for query response time to fetch individual query performance metrics."`
25
26
QueryMonitoringCountThresholdint`default:"20" help:"Query count limit for fetching grouped slow and individual query performance metrics."`
Copy file name to clipboardExpand all lines: src/query-performance-monitoring/constants/constants.go
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,6 @@ const (
22
22
*/
23
23
ExplainQueryFormat="EXPLAIN FORMAT=JSON %s"
24
24
25
-
/*
26
-
SupportedStatements defines the SQL statements for which this integration fetches query execution plans.
27
-
Restricting the supported statements improves compatibility and reduces the complexity of plan analysis.
28
-
*/
29
-
SupportedStatements="SELECT WITH"
30
-
31
25
/*
32
26
QueryPlanTimeoutDuration sets the timeout for fetching query execution plans.
33
27
This prevents indefinite waits when a query plan retrieval takes too long, ensuring system responsiveness.
@@ -81,6 +75,17 @@ const (
81
75
This ensures version strings are formatted correctly and allows for proper version comparison.
82
76
*/
83
77
MinVersionParts=2
78
+
79
+
/*
80
+
EssentialConsumersCount defines the number of essential consumers that must be enabled
81
+
in the performance schema to ensure that the necessary performance data is available.
82
+
83
+
The EssentialConsumersCount is set to 5 because two of the consumers (events_statements_cpu and events_waits_history_long)
84
+
are optional and may not be available in Aurora RDS environments. Therefore, we consider only the remaining five consumers
85
+
(events_waits_current, events_waits_history, events_statements_current, events_statements_history, and events_statements_history_long) as essential and
86
+
consistently available across all supported MySQL environments.
0 commit comments