Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(agent): Expose magicsock metrics#7183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mtojek merged 3 commits intocoder:mainfrommtojek:6724-expose-magicsock-metrics
Apr 19, 2023

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedApr 18, 2023
edited
Loading

Related:#6724

This PR enablesmagicsock metrics fromwgengine via the agent internal endpoint. They might be useful for investigating network connectivity issues.

I collected these metrics by randomly playing withping,scaletest,reconnectingpty, andcode-server.

$ curl -s localhost:2112 | grep -v " 0" | grep -v TYPEmagicsock_disco_recv_bad_peer 1magicsock_disco_recv_callmemaybe 10magicsock_disco_recv_derp 39magicsock_disco_recv_ping 370magicsock_disco_recv_pong 143magicsock_disco_recv_udp 484magicsock_disco_send_derp 32magicsock_disco_send_udp 494magicsock_disco_sent_callmemaybe 3magicsock_disco_sent_derp 32magicsock_disco_sent_ping 153magicsock_disco_sent_pong 370magicsock_disco_sent_udp 494magicsock_netmap_num_peers 3magicsock_num_derp_conns 1magicsock_recv_data_derp 4magicsock_recv_data_ipv4 4675magicsock_restun_calls 12magicsock_send_data 6025magicsock_send_derp 34magicsock_send_derp_queued 34magicsock_send_udp 494magicsock_update_endpoints 12netcheck_report 11netcheck_report_full 2netcheck_stun_recv_ipv4 13netcheck_stun_send_ipv4 13portmap_pcp_sent 11portmap_pmp_sent 11portmap_upnp_sent 11tstun_in_from_wg 4668tstun_in_from_wg_drop 4668tstun_out_to_wg 6018

@mtojekmtojek requested review frombpmct andcoadlerApril 18, 2023 12:25
@mtojekmtojek self-assigned thisApr 18, 2023
@mtojekmtojek requested a review fromjohnstcnApril 18, 2023 12:25
@mtojekmtojek marked this pull request as ready for reviewApril 18, 2023 12:34
@mtojekmtojek merged commitf94ac55 intocoder:mainApr 19, 2023
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 19, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@bpmctbpmctAwaiting requested review from bpmct

+1 more reviewer

@coadlercoadlercoadler approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@mtojekmtojek

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mtojek@johnstcn@coadler

[8]ページ先頭

©2009-2025 Movatter.jp