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