Skip to content

Commit f55dfa2

Browse files
authored
Merge pull request DataDog#14652 from DataDog/alex.barksdale/add-mysql-missing-consumer-troubleshooting
dbm: Add MySQL troubleshooting for missing event statements consumer
2 parents 3ee58da + 138a21f commit f55dfa2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/en/database_monitoring/setup_mysql/troubleshooting.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ DD_LOG_LEVEL=debug DBM_THREADED_JOB_RUN_SYNC=true agent check sqlserver -t 2
8888

8989
Some or all queries may not have plans available. This can be due to unsupported query commands, queries made by unsupported client applications, an outdated Agent, or incomplete database setup. Below are possible causes for missing explain plans.
9090

91+
#### Missing event statements consumer {#events-statements-consumer-missing}
92+
To capture explain plans, you must enable an event statements consumer. You can do this by adding the following option to your configuration files (for example, `mysql.conf`):
93+
```
94+
performance-schema-consumer-events-statements-current=ON
95+
```
96+
97+
Datadog additionally recommends enabling the following:
98+
```
99+
performance-schema-consumer-events-statements-history-long=ON
100+
```
101+
This option enables the tracking of a larger number of recent queries across all threads. Turning it on increases the likelihood of capturing execution details from infrequent queries.
102+
91103
#### Missing explain plan procedure {#explain-plan-procedure-missing}
92104
The Agent requires the procedure `datadog.explain_statement(...)` to exist in the `datadog` schema. Read the [setup instructions][1] for details on the creation of the `datadog` schema.
93105

0 commit comments

Comments
 (0)