2024-10-17 22:37:46 +00:00
|
|
|
[
|
|
|
|
{kernel, [
|
|
|
|
{log_level, info},
|
|
|
|
{logger, [
|
|
|
|
{handler, default, logger_std_h, #{
|
|
|
|
level =>
|
|
|
|
debug,
|
|
|
|
config => #{
|
|
|
|
type =>
|
2024-11-04 00:33:24 +00:00
|
|
|
{file, "/var/log/dmt/console.json"},
|
2024-10-17 22:37:46 +00:00
|
|
|
sync_mode_qlen =>
|
|
|
|
20
|
|
|
|
},
|
|
|
|
formatter =>
|
|
|
|
{logger_logstash_formatter, #{}}
|
|
|
|
}}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
2024-11-04 17:24:01 +00:00
|
|
|
{dmt, [
|
|
|
|
{host, <<"dmt">>},
|
|
|
|
{port, 8022},
|
|
|
|
{scoper_event_handler_options, #{
|
|
|
|
event_handler_opts => #{
|
|
|
|
formatter_opts => #{
|
|
|
|
max_length => 1000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}},
|
|
|
|
{services, #{
|
|
|
|
repository => #{
|
|
|
|
url => <<"http://dmt:8022/v1/domain/repository">>
|
|
|
|
},
|
|
|
|
repository_client => #{
|
|
|
|
url => <<"http://dmt:8022/v1/domain/repository_client">>
|
|
|
|
},
|
|
|
|
user_op => #{
|
|
|
|
url => <<"http://dmt:8022/v1/domain/user_op">>
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{woody, [
|
|
|
|
{acceptors_pool_size, 4}
|
|
|
|
]},
|
2024-10-17 22:37:46 +00:00
|
|
|
|
|
|
|
{epg_connector, [
|
|
|
|
{databases, #{
|
|
|
|
default_db => #{
|
|
|
|
host => "db",
|
|
|
|
port => 5432,
|
|
|
|
username => "postgres",
|
|
|
|
password => "postgres",
|
|
|
|
database => "dmt"
|
|
|
|
}
|
|
|
|
}},
|
|
|
|
{pools, #{
|
|
|
|
default_pool => #{
|
|
|
|
database => default_db,
|
|
|
|
size => 10
|
2024-11-04 17:24:01 +00:00
|
|
|
},
|
|
|
|
user_op_pool => #{
|
|
|
|
database => default_db,
|
|
|
|
size => 10
|
2024-10-17 22:37:46 +00:00
|
|
|
}
|
|
|
|
}}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{scoper, [
|
|
|
|
{storage, scoper_storage_logger}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{how_are_you, [
|
|
|
|
{metrics_publishers, [
|
|
|
|
% {hay_statsd_publisher, #{
|
2024-11-04 00:33:24 +00:00
|
|
|
% key_prefix => <<".">>,
|
2024-10-17 22:37:46 +00:00
|
|
|
% host => "localhost",
|
|
|
|
% port => 8125
|
|
|
|
% }}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{prometheus, [
|
|
|
|
{collectors, [
|
|
|
|
default
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
].
|