Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@charlieblevins
Copy link
Contributor

@charlieblevins charlieblevins commented Sep 19, 2025

WHY

In my use case, I have many different frpc binaries connecting to the same frps binary. Each frpc binary has a unique proxy name configured.

For this reason, it is useful to know which proxy (i.e. worker/control connection) is active. Without this PR, I can only know how many proxies are connected, but not which ones.

Fix #4986

@charlieblevins charlieblevins changed the title add proxy name label to the proxy_count metric add proxy name label to the proxy_count prometheus metric Sep 19, 2025
@fatedier fatedier requested a review from Copilot September 22, 2025 16:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a more detailed Prometheus metric for proxy counting that includes the proxy name as a label. This enables monitoring of individual proxy connections rather than just aggregate counts by type.

  • Introduces a new proxy_counts_detailed metric with both proxy type and name labels
  • Updates the NewProxy and CloseProxy methods to track individual proxy instances
  • Registers the new metric with the Prometheus registry

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fatedier fatedier merged commit 7cfa546 into fatedier:dev Sep 22, 2025
2 checks passed
nebulabox added a commit to nebulabox/frp that referenced this pull request Oct 17, 2025
* commit 'ee3cc4b14ea2f8c9581fa06b7151593b94f4ddcc':
  Fix CloseNotifyConn.Close function (fatedier#5022)
  update README (fatedier#5001)
  bump version to v0.65.0 and update release notes (fatedier#4998)
  update sponsors info (fatedier#4997)
  chore: fix struct field name in comment (fatedier#4993)
  auth: enhance OIDC client with TLS and proxy configuration options (fatedier#4990)
  add proxy name label to the proxy_count prometheus metric (fatedier#4985)
  update go version to 1.24 (fatedier#4960)
  update README (fatedier#4957)
  improve yamux logging (fatedier#4952)
  xtcp: add configuration to disable assisted addresses in NAT traversal (fatedier#4951)
  remove quotes (fatedier#4938)
  Merge pull request fatedier#4928 from fatedier/xtcp
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] in prometheus metrics, I would like to see which proxies are currently registered (i.e. frpc connected)

2 participants