7.4. 監視およびロギング
このクラスには、以下を追跡する内部 LoggingListener を介した組み込みのロギング機能が含まれています。
- 接続の作成と破棄
- 接続の取得と返却
- 接続検証イベント
- 接続リーク検出
メトリクスは次のプロパティーを使用して有効化されます。
spring.datasource.agroal.metrics = true
このプロパティーは、Javadoc に記載されている次のメトリクスを公開します。
- agroal.acquire.count
- agroal.awaiting.count
- agroal.blocking.time.average
- agroal.blocking.time.max
- agroal.blocking.time.total
- agroal.connections.active.count
- agroal.connections.available.count
- agroal.connections.creation.count
- agroal.connections.creation.time.average
- agroal.connections.creation.time.max
- agroal.connections.creation.time.total
- agroal.connections.destroy.count
- agroal.connections.flush.count
- agroal.connections.invalid.count
- agroal.connections.max.used.count
- agroal.connections.reap.count
- agroal.leak.detection.count