Skip to content

Conversation

@juvenn
Copy link

@juvenn juvenn commented Aug 24, 2024

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 counter
inbound_packet_bytes{inbound="mixed-in",user=""} 1310
# HELP outbound_packet_bytes Total bytes of outbound packets
# TYPE outbound_packet_bytes counter
outbound_packet_bytes{outbound="DIRECT",user=""} 4081
outbound_packet_bytes{outbound="Proxies",user=""} 8704

It should close #87 and serves a starting point for #1564

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.

@juvenn
Copy link
Author

juvenn commented Aug 27, 2024

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

@nekohasekai nekohasekai force-pushed the dev-next branch 2 times, most recently from c7ddfec to 5dd4358 Compare September 23, 2025 09:28
@nekohasekai nekohasekai force-pushed the dev-next branch 4 times, most recently from af0df73 to ba496ae Compare October 7, 2025 06:09
@nekohasekai nekohasekai force-pushed the dev-next branch 10 times, most recently from ab7df4d to 609bd63 Compare October 16, 2025 15:25
@nekohasekai nekohasekai force-pushed the dev-next branch 12 times, most recently from 6b82890 to c689437 Compare October 24, 2025 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Prometheus metrics

3 participants