-
Notifications
You must be signed in to change notification settings - Fork 0
/
sys.config
44 lines (42 loc) · 1.92 KB
/
sys.config
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
[
{metronome, [
{period, 10000},
{generation, 5},
{inline, [{"%local%", "local"},
{"%global%", "global"}]},
{graphite_host, "127.0.0.1"},
{graphite_port, 2003},
{predefined, [
{"%local%.%node%.erlang.memory.ets.gauge", {erlang, memory, [], ets}, gauge},
{"%local%.%node%.erlang.memory.atom.gauge", {erlang, memory, [], atom}, gauge},
{"%local%.%node%.erlang.memory.binary.gauge", {erlang, memory, [], binary}, gauge},
{"%local%.%node%.erlang.memory.processes.gauge", {erlang, memory, [], processes_used}, gauge},
{"%local%.%node%.erlang.memory.system.gauge", {erlang, memory, [], system}, gauge},
{"%local%.%node%.erlang.memory.total.gauge", {erlang, memory, [], total}, gauge},
{"%local%.%node%.erlang.processes.gauge", {erlang, system_info, [process_count]}, gauge},
{"%local%.%node%.erlang.run_queue.gauge", {metronome, system_status, [run_queue], run_queue}, gauge},
{"%global%.%node%.erlang.garbage_collection.meter", {metronome, system_status, [garbadge_collection], gc_count}, meter},
{"%global%.%node%.erlang.context_switches.meter", {metronome, system_status, [context_switches], context_switches}, meter}
]}
]},
{lager, [
{error_logger_redirect, true},
{colored, true},
{error_logger_hwm, 25},
{crash_log, "log/crash.log"},
{handlers, [
{lager_console_backend, [
info,
{lager_default_formatter, [date, " ", time, " ", node, " [", severity, "] [", module ,"] ", message, "\n"]}
]}
]}
]},
%% SASL config
{sasl, [
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"},
{error_logger_mf_maxbytes, 10485760},
{error_logger_mf_maxfiles, 5}
]}
].