Skip to content

Azureインテグレーション - SQL Database

MackerelはAzureインテグレーションにてSQL Databaseのメトリック取得や監視に対応しています。課金対象として 1インスタンス = 1マイクロホスト と換算します。

Azureインテグレーションの設定方法や対応Azureサービス一覧についてはこちらのページをご確認ください。
Azureインテグレーション

取得メトリック

AzureインテグレーションのSQL Database対応で取得できるメトリックは価格レベルによって異なります。 各価格レベルで取得できるメトリックは以下の通りです。 メトリック の説明に関してはAzureのドキュメントをご確認ください。

DTUベース

Basic, Standard, Premium

最大で21個のメトリックが取得されます。

グラフ名メトリックMackerel上のメトリック名単位Aggregation Type
Data space allocatedallocated_data_storageazure.sql_database.allocated_data_storage.allocated_databytesAverage
Connectionsblocked_by_firewall
connection_failed
connection_successful
azure.sql_database.connection.blocked_by_firewall
azure.sql_database.connection.failed
azure.sql_database.connection.successful
integerTotal
CPUcpu_percentazure.sql_database.cpu.percentpercentageAverage
Deadlocksdeadlockazure.sql_database.deadlock.countintegerTotal
DTU Consumptiondtu_consumption_percentazure.sql_database.dtu_consumption.percentpercentageAverage
DTUdtu_limit
dtu_used
azure.sql_database.dtu.limit
azure.sql_database.dtu.used
floatAverage
Log Writelog_write_percentazure.sql_database.log_write.percentpercentageAverage
Data Readphysical_data_read_percentazure.sql_database.physical_data_read.percentpercentageAverage
Sessionssessions_percentazure.sql_database.sessions.percentpercentageAverage
SQL Server process core percentsqlserver_process_core_percentazure.sql_database.sqlserver_process_core_percent.percentpercentageMaximum
SQL Server process memory percentsqlserver_process_memory_percentazure.sql_database.sqlserver_process_memory_percent.percentpercentageMaximum
Data space usedstorageazure.sql_database.storage.usedbytesMaximum
Data space used percentstorage_percentazure.sql_database.storage_percent.percentpercentageMaximum
Tempdb Data File Sizetempdb_data_sizeazure.sql_database.tempdb_data_size.data_sizebytesMaximum
Tempdb Log File Sizetempdb_log_sizeazure.sql_database.tempdb_log_size.log_sizebytesMaximum
Tempdb Percent Log Usedtempdb_log_used_percentazure.sql_database.tempdb_log_used_percent.percentpercentageMaximum
Workersworkers_percentazure.sql_database.workers.percentpercentageAverage
In-Memory OLTP Storagextp_storage_percentazure.sql_database.xtp_storage.percentpercentageAverage

仮想コアベース

General Purpose

最大で20個のメトリックが取得されます。

グラフ名メトリックMackerel上のメトリック名単位Aggregation Type
Data space allocatedallocated_data_storageazure.sql_database.allocated_data_storage.allocated_databytesAverage
Connectionsblocked_by_firewall
connection_failed
connection_successful
azure.sql_database.connection.blocked_by_firewall
azure.sql_database.connection.failed
azure.sql_database.connection.successful
integerTotal
CPU limit/usedcpu_limit
cpu_used
azure.sql_database.cpu_limit_used.limit
azure.sql_database.cpu_limit_used.used
floatAverage
CPUcpu_percentazure.sql_database.cpu.percentpercentageAverage
Deadlocksdeadlockazure.sql_database.deadlock.countintegerTotal
Log Writelog_write_percentazure.sql_database.log_write.percentpercentageAverage
Data Readphysical_data_read_percentazure.sql_database.physical_data_read.percentpercentageAverage
Sessionssessions_percentazure.sql_database.sessions.percentpercentageAverage
SQL Server process core percentsqlserver_process_core_percentazure.sql_database.sqlserver_process_core_percent.percentpercentageMaximum
SQL Server process memory percentsqlserver_process_memory_percentazure.sql_database.sqlserver_process_memory_percent.percentpercentageMaximum
Data space usedstorageazure.sql_database.storage.usedbytesMaximum
Data space used percentstorage_percentazure.sql_database.storage_percent.percentpercentageMaximum
Tempdb Data File Sizetempdb_data_sizeazure.sql_database.tempdb_data_size.data_sizebytesMaximum
Tempdb Log File Sizetempdb_log_sizeazure.sql_database.tempdb_log_size.log_sizebytesMaximum
Tempdb Percent Log Usedtempdb_log_used_percentazure.sql_database.tempdb_log_used_percent.percentpercentageMaximum
Workersworkers_percentazure.sql_database.workers.percentpercentageAverage
In-Memory OLTP Storagextp_storage_percentazure.sql_database.xtp_storage.percentpercentageAverage

General Purposeでのみサポートされているサーバーレスデータベースの場合は、上記のメトリックに加えて以下のメトリックが取得されます。

グラフ名メトリックMackerel上のメトリック名単位Aggregation Type
App CPU billedapp_cpu_billedazure.sql_database.app_cpu_billed.billedintegerTotal
App CPU percentageapp_cpu_percentazure.sql_database.app_cpu_percent.percentpercentageAverage
App memory used percentageapp_memory_percentazure.sql_database.app_memory_percent.percentpercentageAverage

Business Critical

最大で20個のメトリックが取得されます。

グラフ名メトリックMackerel上のメトリック名単位Aggregation Type
Data space allocatedallocated_data_storageazure.sql_database.allocated_data_storage.allocated_databytesAverage
Connectionsblocked_by_firewall
connection_failed
connection_successful
azure.sql_database.connection.blocked_by_firewall
azure.sql_database.connection.failed
azure.sql_database.connection.successful
integerTotal
CPU limit/usedcpu_limit
cpu_used
azure.sql_database.cpu_limit_used.limit
azure.sql_database.cpu_limit_used.used
floatAverage
CPUcpu_percentazure.sql_database.cpu.percentpercentageAverage
Deadlocksdeadlockazure.sql_database.deadlock.countintegerTotal
Log Writelog_write_percentazure.sql_database.log_write.percentpercentageAverage
Data Readphysical_data_read_percentazure.sql_database.physical_data_read.percentpercentageAverage
Sessionssessions_percentazure.sql_database.sessions.percentpercentageAverage
SQL Server process core percentsqlserver_process_core_percentazure.sql_database.sqlserver_process_core_percent.percentpercentageMaximum
SQL Server process memory percentsqlserver_process_memory_percentazure.sql_database.sqlserver_process_memory_percent.percentpercentageMaximum
Data space usedstorageazure.sql_database.storage.usedbytesMaximum
Data space used percentstorage_percentazure.sql_database.storage_percent.percentpercentageMaximum
Tempdb Data File Sizetempdb_data_sizeazure.sql_database.tempdb_data_size.data_sizebytesMaximum
Tempdb Log File Sizetempdb_log_sizeazure.sql_database.tempdb_log_size.log_sizebytesMaximum
Tempdb Percent Log Usedtempdb_log_used_percentazure.sql_database.tempdb_log_used_percent.percentpercentageMaximum
Workersworkers_percentazure.sql_database.workers.percentpercentageAverage
In-Memory OLTP Storagextp_storage_percentazure.sql_database.xtp_storage.percentpercentageAverage

Hyperscale

最大で18個のメトリックが取得されます。

グラフ名メトリックMackerel上のメトリック名単位Aggregation Type
Data space allocatedallocated_data_storageazure.sql_database.allocated_data_storage.allocated_databytesAverage
Connectionsblocked_by_firewall
connection_failed
connection_successful
azure.sql_database.connection.blocked_by_firewall
azure.sql_database.connection.failed
azure.sql_database.connection.successful
integerTotal
CPU limit/usedcpu_limit
cpu_used
azure.sql_database.cpu_limit_used.limit
azure.sql_database.cpu_limit_used.used
floatAverage
CPUcpu_percentazure.sql_database.cpu.percentpercentageAverage
Deadlocksdeadlockazure.sql_database.deadlock.countintegerTotal
Log Writelog_write_percentazure.sql_database.log_write.percentpercentageAverage
Data Readphysical_data_read_percentazure.sql_database.physical_data_read.percentpercentageAverage
Sessionssessions_percentazure.sql_database.sessions.percentpercentageAverage
SQL Server process core percentsqlserver_process_core_percentazure.sql_database.sqlserver_process_core_percent.percentpercentageMaximum
SQL Server process memory percentsqlserver_process_memory_percentazure.sql_database.sqlserver_process_memory_percent.percentpercentageMaximum
Tempdb Data File Sizetempdb_data_sizeazure.sql_database.tempdb_data_size.data_sizebytesMaximum
Tempdb Log File Sizetempdb_log_sizeazure.sql_database.tempdb_log_size.log_sizebytesMaximum
Tempdb Percent Log Usedtempdb_log_used_percentazure.sql_database.tempdb_log_used_percent.percentpercentageMaximum
Workersworkers_percentazure.sql_database.workers.percentpercentageAverage
In-Memory OLTP Storagextp_storage_percentazure.sql_database.xtp_storage.percentpercentageAverage

注意事項

Azure SQL Databaseでサポートされているエラスティックプール内のデータベースでは、以下のメトリックは取得されません。

  • sqlserver_process_core_percent
  • sqlserver_process_memory_percent
  • tempdb_data_size
  • tempdb_log_size
  • tempdb_log_used_percent

また、DTUベースのSQL Databaseをご利用で、ハードウェアの世代がGen 4かつ200 DTU未満の場合、上記のメトリックは取得できません。
これは、Azureのプラットフォーム上の制約によるものです。

ご利用の環境については、以下の方法でご確認ください。

  • DTU
    • Azure Portalの対象リソースの概要から確認することができます。
  • ハードウェアの世代
    • 対象のSQL Databaseにて下記のクエリを実行することで、そのハードウェア世代を確認することができます。
SELECT TOP (1) rg.slo_name,
  CASE 
    WHEN rg.slo_name LIKE '%SQLG4%' THEN 'Gen4'
    WHEN rg.slo_name LIKE '%SQLGZ%' THEN 'Gen4'
    WHEN rg.slo_name LIKE '%SQLG5%' THEN 'Gen5'
    WHEN rg.slo_name LIKE '%SQLG6%' THEN 'Gen5'
 END AS dtu_hardware_gen
FROM sys.dm_user_db_resource_governance AS rg

なお、ハードウェアの世代がGen 4のハードウェアについては、Azureの計画メンテンナンスにおいて順次Gen 5に置き換えられています。
現在当該メトリックが表示されないSQL Databaseについても、将来表示されるようになる可能性があります。