Manually trace Query Performance that spike our CPU usage in Azure Database MariaDB 10.3

Mohd Khairi 1 Reputation point

Query Performance Insight is not applied to Azure Database MariaDB 10.3. I there any other option that we can manually trace Query Performance that spike our CPU usage?

Azure Database for MariaDB
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,576 Reputation points

    Hi @Mohd Khairi , welcome to Microsoft Q&A forum.

    Currently the Query Performance Insight is not supported with version 10.3 on Azure MariaDB database. You can upvote this feature on the below uservoice link:

    However, there are different ways through which we can check the performance of queries that take longer to execute and can cause higher CPU usage:

    1). Setting up alerts on specific metrics provided like cpu_percent, memory_percent etc. through alerts as mentioned in below article :


    2) Slow query logs: Setting up slow query logs and accessing the queries that are taking longer time and accessing them through Azure Monitor Logs:

    3). Using Query store to identify the long running as well as resource intensive queries. We would get the queries that take longer time based on parameters mentioned in the screenshot:


    Clubbing alerts with these parameters can tell us when the spike happened and which queries were running then.

    Please let us know if this helps or else we can discuss further on the same.

    If answer helps, please select 'Accept Answer' as this could help others having similar queries.

    0 comments No comments