-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
43 lines (32 loc) · 957 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
35
36
37
38
39
40
41
42
43
var pmx = require('pmx');
var rabbitmqStats = require('./lib/rabbitmq_stats.js');
pmx.initModule({
pid: pmx.resolvePidPaths(['/var/run/rabbitmq/pid']),
// Options related to the display style on Keymetrics
widget: {
// Logo displayed
logo: 'https://cloud.google.com/solutions/rabbitmq/images/rabbitmq_logo.png',
// Module colors
// 0 = main element
// 1 = secondary
// 2 = main border
// 3 = secondary border
theme: ['#141A1F', '#222222', '#FC6400', '#807C7C'],
// Section to show / hide
el: {
probes: true,
actions: true
},
// Main block to show / hide
block: {
actions: false,
issues: true,
meta: true,
// Custom metrics to put in BIG
main_probes: ['Queues', 'Connections', 'Consumers', 'Total Messages', 'Publish Rate/sec', 'Deliver Rate/sec']
}
}
}, function (err, conf) {
// Init metrics refresh loop
rabbitmqStats.init(conf);
});