# HG changeset patch # User Alain Mazy # Date 1754929568 -7200 # Node ID c76a214a39541c5023b1ffa057bad0acbc194746 # Parent 94e3a3eac0f593395439cc85bb8a2752773f1903 rename diff -r 94e3a3eac0f5 -r c76a214a3954 Framework/Plugins/DynamicIndexConnectionsPool.cpp --- a/Framework/Plugins/DynamicIndexConnectionsPool.cpp Mon Aug 11 18:21:42 2025 +0200 +++ b/Framework/Plugins/DynamicIndexConnectionsPool.cpp Mon Aug 11 18:26:08 2025 +0200 @@ -32,7 +32,7 @@ { CleanupOldConnections(); - OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections_count", maxConnectionsCount_ - connectionsSemaphore_.GetAvailableResourcesCount(), OrthancPluginMetricsType_Default); + OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections", maxConnectionsCount_ - connectionsSemaphore_.GetAvailableResourcesCount(), OrthancPluginMetricsType_Default); } diff -r 94e3a3eac0f5 -r c76a214a3954 Framework/Plugins/IndexConnectionsPool.cpp --- a/Framework/Plugins/IndexConnectionsPool.cpp Mon Aug 11 18:21:42 2025 +0200 +++ b/Framework/Plugins/IndexConnectionsPool.cpp Mon Aug 11 18:26:08 2025 +0200 @@ -78,8 +78,8 @@ void IndexConnectionsPool::PerformPoolHousekeeping() { - // this is actually a fixed value ! - OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections_count", countConnections_, OrthancPluginMetricsType_Default); + // this is actually a fixed value with this pool ! + OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections", countConnections_, OrthancPluginMetricsType_Default); } diff -r 94e3a3eac0f5 -r c76a214a3954 PostgreSQL/NEWS --- a/PostgreSQL/NEWS Mon Aug 11 18:21:42 2025 +0200 +++ b/PostgreSQL/NEWS Mon Aug 11 18:26:08 2025 +0200 @@ -18,7 +18,7 @@ could otherwise accumulate dead rows. When using a dynamic pool, connections are released either after 60 seconds of being idle or one hour after their creation. -* New metrics "orthanc_index_active_connections_count" showing the current number +* New metrics "orthanc_index_active_connections" showing the current number of active connections. * Added support for AuditLogs. The PostgreSQL plugin is listening to audit logs and is storing them in the SQL Database.