-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
51 lines (38 loc) · 1.15 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
var pmx = require('pmx');
var couchdbClientFactory = require('./lib/clientFactory.js');
var couchdbStats = require('./lib/stats.js');
var couchdbActions = require('./lib/actions.js');
pmx.initModule({
// No PID file for couchdb
//pid: pmx.resolvePidPaths([]),
// Options related to the display style on Keymetrics
widget: {
// Logo displayed
logo: 'https://svn.apache.org/repos/asf/couchdb/supplement/logo/couchdb-site-brown.png',
// Module colors
// 0 = main element
// 1 = secondary
// 2 = main border
// 3 = secondary border
theme: ['#3E3E2E', '#3E3E2E', '#ffffff', '#7e7e76'],
// Section to show / hide
el: {
probes: true,
actions: true
},
// Main block to show / hide
block: {
actions: true,
issues: true,
meta: true,
// Custom metrics to put in BIG
main_probes: ['Open Databases', 'DB Reads', 'DB Writes','Mean Req. Time','HTTP Requests']
}
}
}, function (err, conf) {
var couchdbClient = couchdbClientFactory.build(conf);
// Init metrics refresh loop
couchdbStats.init(couchdbClient);
// Init actions
couchdbActions.init(couchdbClient);
});