-
Notifications
You must be signed in to change notification settings - Fork 15
/
app.js
34 lines (24 loc) · 635 Bytes
/
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
var pmx = require('pmx');
var stats = require('./lib/stats');
pmx.initModule({
widget: {
pid: pmx.resolvePidPaths([
'/var/run/mongodb.pid',
'/var/run/mongodb/mongodb.pid'
]),
logo: 'https://raw.githubusercontent.com/pm2-hive/pm2-mongodb/master/pres/mongodb-logo.png',
theme: ['#262E35', '#222222', '#3ff', '#3ff'],
el: {
probes: true,
actions: true
},
block: {
actions: false,
issues: false,
meta: true,
main_probes: ['Insert', 'Query', 'Update', 'Delete', 'Command', 'netOut', 'netIn']
}
}
}, function (err, conf) {
stats.init(conf);
});