@nsshunt/stsdatamanagement 1.6.2 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/pgpoolmanager.js +3 -3
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nsshunt/stsdatamanagement",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "STS Data Management Modules, Utilities and Services",
|
|
5
5
|
"main": "dbaccess.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@nsshunt/stsconfig": "^1.6.1",
|
|
8
|
-
"@nsshunt/stsinstrumentation": "^
|
|
8
|
+
"@nsshunt/stsinstrumentation": "^6.1.2",
|
|
9
9
|
"@nsshunt/stsutils": "^1.5.9",
|
|
10
10
|
"axios": "^0.24.0",
|
|
11
11
|
"bcryptjs": "^2.4.3",
|
package/pgpoolmanager.js
CHANGED
|
@@ -102,9 +102,9 @@ class PGPoolManager
|
|
|
102
102
|
typeof poolManager.instruments[Gauge.CONNECTION_POOL_IDLE_GAUGE] !== 'undefined' &&
|
|
103
103
|
typeof poolManager.instruments[Gauge.CONNECTION_POOL_WAITING_GAUGE] !== 'undefined')
|
|
104
104
|
{
|
|
105
|
-
poolManager.instruments[Gauge.CONNECTION_POOL_TOTAL_GAUGE].
|
|
106
|
-
poolManager.instruments[Gauge.CONNECTION_POOL_IDLE_GAUGE].
|
|
107
|
-
poolManager.instruments[Gauge.CONNECTION_POOL_WAITING_GAUGE].
|
|
105
|
+
poolManager.instruments[Gauge.CONNECTION_POOL_TOTAL_GAUGE].val = poolManager.pool.totalCount;
|
|
106
|
+
poolManager.instruments[Gauge.CONNECTION_POOL_IDLE_GAUGE].val = poolManager.pool.idleCount;
|
|
107
|
+
poolManager.instruments[Gauge.CONNECTION_POOL_WAITING_GAUGE].val = poolManager.pool.waitingCount;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|