-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitor.js
36 lines (29 loc) · 803 Bytes
/
monitor.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const Arena = require('bull-arena');
const express = require('express');
const app = express()
const router = express.Router();
const arenaConfig = Arena({
queues: [
{
// Name of the bull queue, this name must match up exactly with what you've defined in bull.
name: "queue1",
// Hostname or queue prefix, you can put whatever you want.
hostId: "SM",
// Redis auth.
redis: {
port: 6379,
host: '127.0.0.1'
},
},
],
},
{
// Make the arena dashboard become available at {my-site.com}/arena.
basePath: '/arena',
// Let express handle the listening.
disableListen: true
});
router.use('/', arenaConfig);
app.use('/', router);
const port = 3300;
app.listen(port, () => console.log(`Example app listening on port ${port}!`))