forked from Ilshidur/pm2-kue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
62 lines (51 loc) · 1.16 KB
/
app.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var pmx = require('pmx');
var queues = require('./probes/queues.js');
var actions = require('./probes/actions.js');
pmx.initModule({
widget: {
type: 'generic',
// Logo to be displayed on the top left block (must be https)
logo: '',
// 0 = main element
// 1 = secondary
// 2 = main border
// 3 = secondary border
theme: [
'#8f6300',
'#28271b',
'#807C7C',
'#807C7C',
],
// Toggle horizontal blocks above main widget
el: {
probes: true,
actions: true,
},
block: {
// Display remote action block
actions: true,
// Display CPU / Memory
cpu: false,
mem: false,
// Issues count display
issues: false,
// Display meta block
meta: true,
// Display metadata about the probe (restart nb, interpreter...)
meta_block: true,
// Name of custom metrics to be displayed as a "major metrics"
main_probes: [
'Complete queues',
'Active queues',
'Inactive queues',
'Failed queues',
],
}
}
}, function(err, conf) {
/*
Module entry
*/
queues.init(conf);
actions.init(conf);
});