Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cb({ success: false, err: err.message });
}
});
// setInterval(() => {
// cache.size((err, size) => {
// if (err) {
// console.error(err);
// return
// }
// cacheSize = size;
// });
// }, 1000 * 10);
}
io.metric({
type: 'metric',
name: 'Cache size (bytes)',
value: () => {
return cacheSize;
}
});
metrics.forEach(function (metric) {
// instanciate each probe
metric.probe = io.metric({
name: metric.name,
unit: metric.unit || ''
})
})
}