mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 15:19:47 +00:00
Remove downstream IP from metrics
This commit is contained in:
parent
8b685c941c
commit
e0d586ef3e
2 changed files with 4 additions and 4 deletions
|
|
@ -329,10 +329,10 @@ handle_upstream_header(DcId, S) ->
|
|||
|
||||
case connect(Addr, Port) of
|
||||
{ok, Sock} ->
|
||||
AddrStr = inet:ntoa(Addr),
|
||||
mtp_metric:count_inc([?APP, out_connect_ok, total], 1,
|
||||
#{labels => [DcId, AddrStr]}),
|
||||
lager:info("Connected to ~s:~p", [AddrStr, Port]),
|
||||
#{labels => [DcId]}),
|
||||
AddrStr = inet:ntoa(Addr),
|
||||
lager:info("Connected to dc_id=~w ~s:~w", [DcId, AddrStr, Port]),
|
||||
down_handshake1(S#state{down_sock = Sock});
|
||||
{error, Reason} = Err ->
|
||||
mtp_metric:count_inc([?APP, out_connect_error, total], 1, #{labels => [Reason]}),
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ active_metrics() ->
|
|||
|
||||
{count, [?APP, out_connect_ok, total],
|
||||
"Proxy out connections",
|
||||
#{labels => [listener, dc_id, addr]}},
|
||||
#{labels => [listener, dc_id]}},
|
||||
{count, [?APP, out_connect_error, total],
|
||||
"Proxy out connect errors",
|
||||
#{labels => [listener, reason]}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue