%% -*- erlang -*- [%% ================================================================================ %% application config %% ================================================================================ {osmo_s1gw, [ %% SCTP server configuration {sctp_server, #{ %% local (bind) address for incoming eNB connections laddr => "127.0.1.1", %% local (bind) port for incoming eNB connections lport => 36412, %% socket options (if omitted or left empty, defaults apply) %% * recbuf/sndbuf - Rx/Rx buffer size (default: 65536) %% * nodelay - enable (false) / disable (true) the Naggle (default: true) sockopts => #{ } }}, %% SCTP client configuration {sctp_client, #{ %% local (bind) address for outgoing connections to the MME laddr => "127.0.2.1", %% remote address for outgoing connections to the MME raddr => "127.0.2.10", %% remote port for outgoing connections to the MME rport => 36412, %% socket options (if omitted or left empty, defaults apply) - see above sockopts => #{ } }}, {pfcp_loc_addr, "127.0.1.1"}, %% local address for incoming PFCP PDUs from the UPF {pfcp_rem_addr, "127.0.1.2"} %% remote address for outgoing PFCP PDUs to the UPF %% Optional PFCP Network Instance IEs (omitted if not configured) %% {pfcp_net_inst_core, "core-side"}, %% PFCP Network Instance IE value (to core) %% {pfcp_net_inst_access, "radio-side"} %% PFCP Network Instance IE value (to access) %% %% Optional GTP-U KPI configuration %% {gtpu_kpi_enable, true}, %% whether to enable the GTP-U KPI module (default: false) %% {gtpu_kpi_table_name, "osmo-s1gw"}, %% the NFT table name to be used by this process %% {gtpu_kpi_ul_addr, s1ap}, %% GTP-U UL address: s1ap | sctp (default: learn from S1AP) %% {gtpu_kpi_dl_addr, s1ap}, %% GTP-U DL address: s1ap | sctp (default: learn from S1AP) %% {gtpu_kpi_interval, 3000}, %% counter reporting interval (ms) %% %% REST interface configuration %% {rest_srv_port, 8080}, %% REST server port (default: 8080) %% {rest_srv_swagger_ui, true} %% REST Swagger UI (default: true) ]}, %% ================================================================================ %% kernel config %% ================================================================================ {kernel, [{logger_level, debug}, {logger, [{handler, gsmtap, logger_gsmtap_h, #{level => debug, config => #{rem_addr => "127.0.0.1", app_name => "OsmoS1GW"}}}, {handler, default, logger_std_h, #{level => info, formatter => {logger_color_formatter, #{legacy_header => false, single_line => false, template => [time, " ", color, "[", level, "]", {pid, [" ", pid, ""], ""}, {prefix, [" ", prefix, " ::"], ""}, " ", msg, {mfa, [" (", mfa, ":", line, ")"], ""}, reset, "\n"]}}}}]} ] }, {exometer_core, [{predefined, [%{[erlang, memory], {function, erlang, memory, [], value, []}, []}, %{[erlang, system_info], {function, erlang, system_info, ['$dp'], value, [process_count]}, []}, %{[erlang, statistics], {function, erlang, statistics, ['$dp'], value, [run_queue]}, []}, %{[erlang, io], {function, erlang, statistics, [io], match, {{'_', input}, {'_', output}}}, []} ] }, {report, [{reporters, [%%{exometer_report_tty, []}, {exometer_report_statsd, [{hostname, "127.0.4.10"}, {port, 8125}, {prefix, "s1gw"}, {type_map, []} ] } ] }, {subscribers, [%%{select, {[{ {['_' | '_'],'_','_'}, [], ['$_']}], %% exometer_report_tty, value, 1000, true}} {select, {[{ {['_' | '_'],counter,'_'}, [], ['$_']}], exometer_report_statsd, value, 1000, true, [{report_type, counter}] } }, {select, {[{ {['_' | '_'],gauge,'_'}, [], ['$_']}], exometer_report_statsd, value, 1000, true, [{report_type, gauge}] } } ] } ] } ] } ]. %% vim:set ts=2 sw=2 et: