Hi Li, Jindong,
Thank you for reaching out and posting the query.
We understand that you're looking for a way to collect IOPS (Input/Output Operations Per Second) information for Azure SQL Managed Instances (MI). Fortunately, there are several methods available to monitor and collect IOPS metrics for Azure SQL MI, leveraging Azure's built-in monitoring tools and services
Collecting IOPS Information in Azure SQL Managed Instance :To collect IOPS (Input/Output Operations Per Second) information in Azure SQL Managed Instance (SQL MI), you can utilize several built-in metrics and tools provided by Azure. Here’s a structured approach to gather this information:
- Default Metrics Available
Azure SQL MI provides several default metrics that can help you monitor IOPS:
io_bytes_read: The total number of bytes read from the database.
io_bytes_written: The total number of bytes written to the database.
io_requests: The total number of I/O requests made.
You can view these metrics in the Metrics blade of the Azure portal. For more details, refer to the Azure SQL Managed Instance Monitoring Reference.
- Using Diagnostic Settings
To send these metrics to other destinations for further analysis, you can configure diagnostic settings. This allows you to export the metrics to services like Azure Monitor, Log Analytics, or Event Hubs. More information can be found in the Diagnostic Settings Documentation.
- Database Watcher for Detailed Insights
If you require more detailed data regarding IOPS, consider using the Database Watcher feature. This tool provides a comprehensive overview of database performance, including:
Cumulative IOPS
Throughput
Latency statistics for each database file
For further details on how to use Database Watcher, refer to the Database Watcher Overview and the Data Sets Documentation.
By utilizing the default metrics, diagnostic settings, and Database Watcher, you can effectively collect and analyze IOPS information for Azure SQL Managed Instance. This will help you monitor performance and optimize your database operations.