Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@bull-monitor/koa
Advanced tools
Koa adapter for bull-monitor
@bull-monitor/koa has a peer dependency of koa-router
npm i @bull-monitor/koa koa-router
import { BullMonitorKoa } from '@bull-monitor/koa';
import Koa from 'koa';
import { BullAdapter } from '@bull-monitor/root/dist/bull-adapter';
// for BullMQ users
// import { BullMQAdapter } from "@bull-monitor/root/dist/bullmq-adapter";
import Queue from 'bull';
(async () => {
const app = new Koa();
const monitor = new BullMonitorKoa({
queues: [
new BullAdapter(new Queue('1', 'REDIS_URI')),
// readonly queue
new BullAdapter(new Queue('2', 'REDIS_URI'), { readonly: true }),
],
baseUrl: '/my/url',
// enables graphql introspection query. false by default if NODE_ENV == production, true otherwise
gqlIntrospection: true,
// enable metrics collector. false by default
// metrics are persisted into redis as a list
// with keys in format "bull_monitor::metrics::{{queue}}"
metrics: {
// collect metrics every X
// where X is any value supported by https://github.com/kibertoad/toad-scheduler
collectInterval: { hours: 1 },
maxMetrics: 100,
// disable metrics for specific queues
blacklist: ['1'],
},
});
await monitor.init({
// optional middleware that will run before the bull-monitor router
middleware: async (_ctx, next) => {
console.log('do something');
await next();
},
});
app.use(monitor.router.routes());
app.listen(3000);
// replace queues
monitor.setQueues([new BullAdapter(new Queue('3', 'REDIS_URI'))]);
})();
FAQs
bull-monitor for koa
The npm package @bull-monitor/koa receives a total of 0 weekly downloads. As such, @bull-monitor/koa popularity was classified as not popular.
We found that @bull-monitor/koa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.