- Configure MySQL Performance Schema Settings
- Setup Database Access for the Agent
- Configure Atatus Infrastructure Agent
Before You Begin
Query Activity and Wait Event collection are unavailable on Azure Database for MySQL Flexible Server.
Configure MySQL Performance Schema Settings
In the Azure Portal, open your MySQL instance and edit its Server parameters:
Azure Database for MySQL enables performance schema consumers (
events_statements_*) by default, so no further consumer configuration is needed. Restart the instance after enabling performance_schema.
Setup Database Access for the Agent
Create theatatus user and grant basic permissions:
EXPLAIN_STATEMENT procedure to enable the agent to collect explain plans:
YOUR_SCHEMA:
Configure Atatus Infrastructure Agent
- Install the Atatus Infrastructure agent on a host (typically an Azure VM) that can reach your MySQL endpoint.
-
Copy the MySQL example configuration file:
-
Update the MySQL configuration file at
/etc/atatus-infra-agent/conf.d/mysql.d/mysql.yml:Replace<AZURE_INSTANCE_ENDPOINT>with your Azure MySQL FQDN, e.g.example-primary.mysql.database.azure.com. -
Restart the Atatus Infra Agent:
Azure Single Server typically requires the username in the form
atatus@<servername> in the connection string. Adjust the username: value accordingly if your instance enforces that format.