MackerelはAzureインテグレーションにてDatabase for MySQLのメトリック取得や監視に対応しています。課金対象として 1リソース = 1マイクロホスト と換算します。
Azureインテグレーションの設定方法や対応Azureサービス一覧についてはこちらのページをご確認ください。
Azureインテグレーション
取得メトリック
Database for MySQLサーバーで取得できるメトリックは以下の通りです。最大で36個のメトリックが取得されます。
実際に取得されるメトリックはサーバーのSKUやロールによって異なる場合があります。 メトリック の説明に関してはAzureのドキュメントをご確認ください。
| グラフ名 | メトリック | Mackerel上のメトリック名 | 単位 | Aggregation Type |
|---|---|---|---|---|
| Backup Storage used | backup_storage_used | azure.db_for_mysql.backup_storage_used.bytes | bytes | Average |
| Connections | active_connections aborted_connections total_connections |
azure.db_for_mysql.connections.active azure.db_for_mysql.connections.aborted azure.db_for_mysql.connections.total |
float | Average Total Total |
| CPU credits Remaining/Consumed | cpu_credits_remaining cpu_credits_consumed |
azure.db_for_mysql.cpu_credits.remaining azure.db_for_mysql.cpu_credits.consumed |
float | Average |
| CPU percent | cpu_percent | azure.db_for_mysql.cpu.percent | percentage | Average |
| HA IO/SQL Status | HA_IO_status HA_SQL_status |
azure.db_for_mysql.ha_status.io azure.db_for_mysql.ha_status.sql |
float | Average |
| InnoDB Buffer Pool Reads/Requests Count | Innodb_buffer_pool_reads Innodb_buffer_pool_read_requests |
azure.db_for_mysql.innodb_buffer_pool_read.reads azure.db_for_mysql.innodb_buffer_pool_read.requests |
float | Total |
| IO percent | io_consumption_percent | azure.db_for_mysql.io.percent | percentage | Average |
| Memory percent | memory_percent | azure.db_for_mysql.memory.percent | percentage | Average |
| MySQL DDL Command | Com_create_db Com_drop_db Com_create_table Com_drop_table Com_alter_table |
azure.db_for_mysql.cmd_ddl.Com_create_db azure.db_for_mysql.cmd_ddl.Com_drop_db azure.db_for_mysql.cmd_ddl.Com_create_table azure.db_for_mysql.cmd_ddl.Com_drop_table azure.db_for_mysql.cmd_ddl.Com_alter_table |
float | Total |
| MySQL DML Command | Com_select Com_update Com_insert Com_delete |
azure.db_for_mysql.cmd_dml.Com_select azure.db_for_mysql.cmd_dml.Com_update azure.db_for_mysql.cmd_dml.Com_insert azure.db_for_mysql.cmd_dml.Com_delete |
float | Total |
| Network In/Out | network_bytes_egress network_bytes_ingress |
azure.db_for_mysql.network.out azure.db_for_mysql.network.in |
bytes | Total |
| Total/Slow Queries | Queries Slow_queries |
azure.db_for_mysql.queries.total azure.db_for_mysql.queries.slow |
float | Total |
| Replica IO/SQL Running | Replica_IO_Running Replica_SQL_Running |
db_for_mysql.replica_running.io db_for_mysql.replica_running.sql |
float | Average |
| Replication lag in seconds | replication_lag | db_for_mysql.replication_lag | seconds | Maximum |
| Server Log storage limit/used | serverlog_storage_limit serverlog_storage_usage |
azure.db_for_mysql.server_log_storage_limit_used.limit azure.db_for_mysql.server_log_storage_limit_used.used |
bytes | Maximum Average |
| Server Log storage percent | serverlog_storage_percent | azure.db_for_mysql.server_log_storage.percent | percentage | Average |
| Storage IO count | storage_io_count | azure.db_for_mysql.storage_io_count | float | Total |
| Storage limit/used | storage_limit storage_used |
azure.db_for_mysql.storage_limit_used.limit azure.db_for_mysql.storage_limit_used.used |
bytes | Maximum Average |
| Storage percent | storage_percent | azure.db_for_mysql.storage.percent | percentage | Average |
注意事項
- Azureインテグレーションにより取得可能な上記のグラフ・メトリックのうち、Backup Storage usedについては、Azureインテグレーションが利用しているAzure Monitor APIの仕様により、通常、15分間隔粒度でのメトリックが取得されます。また、更新は最大で30分遅延します。