@nsshunt/stsconfig 1.8.6 → 1.10.0

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/stsconfig.js +20 -0
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@nsshunt/stsconfig",
3
- "version": "1.8.6",
3
+ "version": "1.10.0",
4
4
  "description": "",
5
5
  "main": "stsconfig.js",
6
6
  "dependencies": {
7
7
  "colors": "^1.4.0",
8
8
  "debug": "^4.3.3",
9
- "dotenv": "^14.2.0",
9
+ "dotenv": "^16.0.0",
10
10
  "yaml": "^1.10.2"
11
11
  },
12
12
  "standard": {
13
13
  "parser": "@babel/eslint-parser"
14
14
  },
15
15
  "devDependencies": {
16
- "@babel/core": "^7.16.10",
17
- "@babel/eslint-parser": "^7.16.5",
16
+ "@babel/core": "^7.17.5",
17
+ "@babel/eslint-parser": "^7.17.0",
18
18
  "@babel/plugin-proposal-class-properties": "^7.16.7",
19
- "@babel/plugin-proposal-private-methods": "^7.16.7",
20
- "eslint": "^8.7.0",
21
- "jest": "^27.4.7"
19
+ "@babel/plugin-proposal-private-methods": "^7.16.11",
20
+ "eslint": "^8.9.0",
21
+ "jest": "^27.5.1"
22
22
  },
23
23
  "scripts": {
24
24
  "lint": "eslint . --ext js,jsx,ts,tsx --fix",
package/stsconfig.js CHANGED
@@ -120,6 +120,10 @@ const defconfig =
120
120
  ,rest01port: (process.env.REST01_PORT === undefined ? "3000" : process.env.REST01_PORT)
121
121
  // STSREST01 Server endpoint
122
122
  ,rest01apiroot: (process.env.REST01_APIROOT === undefined ? "/stsrest01/v1/im" : process.env.REST01_APIROOT)
123
+ // STSREST01 Prometheus metric support
124
+ ,rest01prometheussupport: (process.env.REST01_PROM_SUPPORT === undefined ? true : (process.env.REST01_PROM_SUPPORT === "true" ? true : false ))
125
+ // STSREST01 Cluster Server port (port used for cluster prometheus scrapes)
126
+ ,rest01prometheusclusterport: (process.env.REST01_PROM_CLUSTER_PORT === undefined ? "3010" : process.env.REST01_PROM_CLUSTER_PORT)
123
127
  // STSREST01 Service Name
124
128
  ,rest01servicename: (process.env.REST01_SERVICE_NAME === undefined ? "STSRest01" : process.env.REST01_SERVICE_NAME)
125
129
  // STSREST01 Service Version
@@ -140,6 +144,10 @@ const defconfig =
140
144
  ,import: (process.env.IM_PORT === undefined ? "3001" : process.env.IM_PORT)
141
145
  // STS Instrument Manager Service endpoint
142
146
  ,imapiroot: (process.env.IM_APIROOT === undefined ? "/stsinstrumentmanager/v1" : process.env.IM_APIROOT)
147
+ // STS Instrument Manager Prometheus metric support
148
+ ,imprometheussupport: (process.env.IM_PROM_SUPPORT === undefined ? true : (process.env.IM_PROM_SUPPORT === "true" ? true : false ))
149
+ // STS Instrument Manager Cluster Server port (port used for cluster prometheus scrapes)
150
+ ,imprometheusclusterport: (process.env.IM_PROM_CLUSTER_PORT === undefined ? "3010" : process.env.IM_PROM_CLUSTER_PORT)
143
151
  // STS Instrument Manager Service Name
144
152
  ,imservicename: (process.env.IM_SERVICE_NAME === undefined ? "STSInstrumentManager" : process.env.IM_SERVICE_NAME)
145
153
  // STS Instrument Manager Service Version
@@ -159,6 +167,10 @@ const defconfig =
159
167
  ,toport: (process.env.TO_PORT === undefined ? "3004" : process.env.TO_PORT)
160
168
  // STS Test Orchestrator Service endpoint
161
169
  ,toapiroot: (process.env.TO_APIROOT === undefined ? "/ststestorchestrator/v1" : process.env.TO_APIROOT)
170
+ // STS Test Orchestrator Prometheus metric support
171
+ ,toprometheussupport: (process.env.TO_PROM_SUPPORT === undefined ? true : (process.env.TO_PROM_SUPPORT === "true" ? true : false ))
172
+ // STS Test Orchestrator Cluster Server port (port used for cluster prometheus scrapes)
173
+ ,toprometheusclusterport: (process.env.TO_PROM_CLUSTER_PORT === undefined ? "3010" : process.env.TO_PROM_CLUSTER_PORT)
162
174
  // STS Test Orchestrator Service Name
163
175
  ,toservicename: (process.env.TO_SERVICE_NAME === undefined ? "STSTestOrchestrator" : process.env.TO_SERVICE_NAME)
164
176
  // STS Test Orchestrator Service Version
@@ -178,6 +190,10 @@ const defconfig =
178
190
  ,asport: (process.env.AS_PORT === undefined ? "3002" : process.env.AS_PORT)
179
191
  // Auth Server endpoint
180
192
  ,asapiroot: (process.env.AS_APIROOT === undefined ? "/stsauth/v1" : process.env.AS_APIROOT)
193
+ // Auth Server Prometheus metric support
194
+ ,asprometheussupport: (process.env.AS_PROM_SUPPORT === undefined ? true : (process.env.AS_PROM_SUPPORT === "true" ? true : false ))
195
+ // Auth Prometheus Cluster Server port (port used for cluster prometheus scrapes)
196
+ ,asprometheusclusterport: (process.env.AS_PROM_CLUSTER_PORT === undefined ? "3012" : process.env.AS_PROM_CLUSTER_PORT)
181
197
  // STSAuth Service Name
182
198
  ,asservicename: (process.env.AS_SERVICE_NAME === undefined ? "STSAuth" : process.env.AS_SERVICE_NAME)
183
199
  // STSAuth Service Version
@@ -189,6 +205,10 @@ const defconfig =
189
205
  // Auth Server username password
190
206
  ,aspassword: (process.env.AS_PASSWORD === undefined ? "K6TestUserPassword" : process.env.AS_PASSWORD)
191
207
 
208
+ // STS Test Runner Prometheus metric support
209
+ ,trprometheussupport: (process.env.TR_PROM_SUPPORT === undefined ? true : (process.env.TR_PROM_SUPPORT === "true" ? true : false ))
210
+ // STS Test Runner Cluster Server port (port used for cluster prometheus scrapes)
211
+ ,trprometheusclusterport: (process.env.TR_PROM_CLUSTER_PORT === undefined ? "3010" : process.env.TR_PROM_CLUSTER_PORT)
192
212
  // STS Test Runner Service Name
193
213
  ,trservicename: (process.env.TR_SERVICE_NAME === undefined ? "STSRestRunner" : process.env.TR_SERVICE_NAME)
194
214
  // STS Test Runner Service Version