You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this exporter is bundled in a k8s pod with teraslice and that Teraslice cluster is new, there is no state cluster, this container will crash with the following error and delay the pod startup:
> @0.2.0 start /app/source
> node dist/index.js
(node:20) UnhandledPromiseRejectionWarning: Error: Added label "error" is not included in initial labelset: [
'arch',
'clustering_type',
'name',
'node_version',
'platform',
'teraslice_version',
'url',
'name'
]
at /app/source/node_modules/prom-client/lib/validation.js:26:10
at Array.forEach (<anonymous>)
at validateLabel (/app/source/node_modules/prom-client/lib/validation.js:24:22)
at /app/source/node_modules/prom-client/lib/gauge.js:211:3
at Gauge.set (/app/source/node_modules/prom-client/lib/gauge.js:79:32)
at Object.updateTerasliceMetrics (/app/source/dist/metrics.js:403:30)
at main (/app/source/dist/index.js:51:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:20) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I think this is because there is no state indices on the initial teraslice pod startup. Possible fixes would be to look at this code and see if it can be fixed here, or wait to stat this container up until sometime after the teraslice container comes up.
The text was updated successfully, but these errors were encountered:
When this exporter is bundled in a k8s pod with teraslice and that Teraslice cluster is new, there is no state cluster, this container will crash with the following error and delay the pod startup:
I think this is because there is no state indices on the initial teraslice pod startup. Possible fixes would be to look at this code and see if it can be fixed here, or wait to stat this container up until sometime after the teraslice container comes up.
The text was updated successfully, but these errors were encountered: