-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
61 lines (52 loc) · 1.12 KB
/
config.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
'use strict';
module.exports = function (logger) {
var env = require('common-env')(logger);
var config = env.getOrElseAll({
amqp: {
user: 'guest',
pass: 'guest',
server: 'localhost',
port: 5672,
vhost: '%2fstatwarn',
replyQueue: 'reply_queue',
alerting: {
trigger: {
queue: 'monitoring.create',
exchange: {
name: 'statwarn',
type: 'topic'
},
routing_key: {
prefix: 'alerts.triggered.'
}
}
}
},
statwarn: {
schema: {
monitoring: {
create: 'application/vnd.com.statwarn.monitoring.create.v1+json'
},
alerts: {
triggered: 'application/vnd.com.statwarn.alerts.triggered.v1+json'
}
},
alerting: {
api: {
endpoint: 'http://127.0.0.1:9000'
},
trigger: {},
action: {}
},
monitoring: {
api: {
port: 9002,
endpoint: 'http://127.0.0.1:9002'
}
}
}
});
// export env
config.env = env;
return config;
};