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

metric-api: Add prometheus metrics#2060

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

Open
juvenn wants to merge31 commits intoSagerNet:dev-next
base:dev-next
Choose a base branch
Loading
fromjuvenn:feat/metric-api

Conversation

juvenn
Copy link

@juvennjuvenn commentedAug 24, 2024
edited
Loading

It adds Prometheus metrics api, along with built-in go process metrics, it includes a few more packet metrics

"experimental": {"metrics": {"listen":":8080"    }  }
curl localhost:8080/metrics# HELP inbound_packet_bytes Total bytes of inbound packets# TYPE inbound_packet_bytes counterinbound_packet_bytes{inbound="mixed-in",user=""} 1310# HELP outbound_packet_bytes Total bytes of outbound packets# TYPE outbound_packet_bytes counteroutbound_packet_bytes{outbound="DIRECT",user=""} 4081outbound_packet_bytes{outbound="Proxies",user=""} 8704

It shouldclose#87 and serves a starting point for#1564

kaseiwang, aur3l14no, Izzotop, and leoncamel reacted with thumbs up emojiMahdi-zarei, iloahz, kasefuchs, charliez0, yanghanlin, aur3l14no, Izzotop, and moriwang reacted with rocket emoji
RoutedPacketConnection(inbound string, outbound string, user string, conn N.PacketConn) N.PacketConn
typeMetricService interface {
Service
PacketTracking
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not sure if it is a good name, suggestions are welcome.

nekohasekaiand others added27 commitsAugust 27, 2024 11:24
* Introduce bittorrent related protocol sniffersincluding, sniffers of1. BitTorrent Protocol (TCP)2. uTorrent Transport Protocol (UDP)Signed-off-by: iosmanthus <myosmanthustree@gmail.com>Co-authored-by: 世界 <i@sekai.icu>
@juvenn
Copy link
Author

@nekohasekai PTAL, let me know if you've any questions.

@nekohasekainekohasekaiforce-pushed thedev-next branch 11 times, most recently from3611dcd to36c095fCompareJune 21, 2025 11:43
@nekohasekainekohasekaiforce-pushed thedev-next branch 12 times, most recently from4492a53 to989034bCompareJuly 3, 2025 14:20
@nekohasekainekohasekaiforce-pushed thedev-next branch 7 times, most recently from8ec5593 tob3c1110CompareJuly 12, 2025 06:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Feature request: Prometheus metrics
3 participants
@juvenn@nekohasekai@iosmanthus

[8]ページ先頭

©2009-2025 Movatter.jp