Bull Monitor module for Nest framework (node.js).
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
This is a wrap around @bull-monitor/express for easy use with NestJs.
This lib requires NestJS ^9.0.0, @nestjs/bull ^0.6.2.
# with npm
npm install @thezeus/bull-monitor @nestjs/bull bull
npm install --save-dev @types/bull
// app.module.ts
import { Module } from "@nestjs/common";
import { BullModule } from "@nestjs/bull";
import { BullMonitorModule } from "@thezeus/bull-monitor";
import { bullConfig } from "@config/queue"
@Module({
imports: [
BullModule.forRoot({
...bullConfig
}),
BullMonitorModule.register({
route: "q-monitor",
config: {
queues: [
{
name: "OTP_SENDER"
},
...otherQueueConfig
],
...otherMonitorConfig
}
}),
middleware: [MyCustomNestJsMiddleware]
]
})
export class AppModule {}
This will create a dashboard which will be available through your_application_url/q-monitor. For bullConfig and otherQueueConfig reference see here, and for otherMonitorConfig reference see here. You can use the middleware option to setup your own authentication.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.