Skip to content

Azureインテグレーション - Database for PostgreSQL

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

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

取得メトリック

Database for PostgreSQLで取得できるメトリックは以下の通りです。

最大で34個(うち拡張メトリック16個)のメトリックが取得されます。 拡張メトリックはサーバーパラメーターmetrics.collector_database_activityをONにすることで取得可能になります。 実際に取得されるメトリックはサーバーのSKUやロールによって異なる場合があります。

メトリック の説明や、拡張メトリックを有効にする方法に関してはAzureのドキュメントをご確認ください。

グラフ名メトリックMackerel上のメトリック名単位Aggregation Type拡張メトリック
Availabilityis_db_aliveazure.db_for_postgresql.availability.dbfloatAveragex
Backendsnumbackendsazure.db_for_postgresql.backends.countfloatMaximumx
Backup Storage usedbackup_storage_usedazure.db_for_postgresql.backup_storage_used.bytesbytesAverage
Connectionsactive_connections
connections_succeeded
connections_failed
azure.db_for_postgresql.connections.active
azure.db_for_postgresql.connections.succeeded
azure.db_for_postgresql.connections.failed
floatAverage
Total
Total
CPU credits Remaining/Consumedcpu_credits_remaining
cpu_credits_consumed
azure.db_for_postgresql.cpu_credits.remaining
azure.db_for_postgresql.cpu_credits.consumed
floatAverage
CPU percentcpu_percentazure.db_for_postgresql.cpu.percentpercentageAverage
Deadlocksdeadlocksazure.db_for_postgresql.deadlocks.countfloatTotalx
Disk Bandwidth Consumeddisk_bandwidth_consumed_percentageazure.db_for_postgresql.disk_bandwidth_consumed.percentpercentageAveragex
Disk IOPSread_iops
write_iops
azure.db_for_postgresql.disk_iops.read
azure.db_for_postgresql.disk_iops.write
iopsAverage
Disk IOPS Consumeddisk_iops_consumed_percentageazure.db_for_postgresql.disk_ios_consumed.percentpercentageAveragex
Disk Throughputread_throughput
write_throughput
azure.db_for_postgresql.disk_throughput.read
azure.db_for_postgresql.disk_throughput.write
bytes/secAverage
Logical Replication Laglogical_replication_delay_in_bytesazure.db_for_postgresql.logical_replication_lag_bytes.maxbytesMaximumx
Memory percentmemory_percentazure.db_for_postgresql.memory.percentpercentageAverage
Network In/Outnetwork_bytes_egress
network_bytes_ingress
azure.db_for_postgresql.network.out
azure.db_for_postgresql.network.in
bytesTotal
Operated Tuples by Queriestup_deleted
tup_fetched
tup_inserted
tup_returned
tup_updated
azure.db_for_postgresql.tuples.deleted
azure.db_for_postgresql.tuples.fetched
azure.db_for_postgresql.tuples.inserted
azure.db_for_postgresql.tuples.returned
azure.db_for_postgresql.tuples.updated
floatTotalx
Physical Replication Lagphysical_replication_delay_in_bytesazure.db_for_postgresql.replication_lag_bytes.maxbytesMaximumx
Read Replica Lagphysical_replication_delay_in_secondsazure.db_for_postgresql.replication_lag.secondssecondsMaximumx
Storage percentstorage_percentazure.db_for_postgresql.storage.percentpercentageAverage
Storage limit/usedstorage_limit
storage_used
azure.db_for_postgresql.storage_limit_used.limit
azure.db_for_postgresql.storage_limit_used.used
bytesMaximum
Average
Transactionsxact_total
xact_commit
xact_rollback
azure.db_for_postgresql.transactions.total
azure.db_for_postgresql.transactions.commit
azure.db_for_postgresql.transactions.rollback
floatTotalx
Used Transaction IDsmaximum_used_transactionIDsazure.db_for_postgresql.used_transaction_ids.maxfloatMax

注意事項

  • Azureインテグレーションにより取得可能な上記のグラフ・メトリックのうち、価格レベルがBasicの場合でのみ取得されるBackup Storage usedについては、Azureインテグレーションが利用しているAzure Monitor APIの仕様により、通常、15分間隔粒度でのメトリックが取得されます。また、更新は最大で30分遅延します。