mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5089] [Feature Request] Get traffic metrics via httpPlugins ops callback #3995
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3995
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gregoiregentil on GitHub (Dec 9, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5089
Describe the feature request
THank you (again) for this great project.
I'm aware of enablePromotheus (which I have enabled) and I would like to get traffic usage, aka. transferred byte amount via:
httpPlugins
ops = ["CloseProxy"]
The promotheus interface does show:
frp_server_traffic_in{name="myname",type="tcp"} 2055
so the information is "there"
Have I missed an option or a meta that would already exist to get such traffic info in httpPplugins for that specific proxy?
Otherwise, could it be implemented? Or could I get some guidance how to patch?
Describe alternatives you've considered
No alternatives known.
Affected area
@fatedier commented on GitHub (Dec 9, 2025):
Currently we do not have plans to expose statistics at the plugin layer. Plugins are mainly intended for extending control-plane functionality rather than for exposing metrics.
@gregoiregentil commented on GitHub (Dec 9, 2025):
Can you guide how and where to patch? Is it complicated or is it just adding some "pipes"? Because calculation and data already exist...
@fatedier commented on GitHub (Dec 9, 2025):
If you want to modify the code yourself, it should be relatively easy now with the help of AI tools.
@gregoiregentil commented on GitHub (Dec 9, 2025):
Great answer! We are just wasting keystrokes...
@github-actions[bot] commented on GitHub (Dec 24, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
@gregoiregentil commented on GitHub (Dec 24, 2025):
The proposed pull-request has been successfully tested.
@fatedier commented on GitHub (Dec 24, 2025):
@github-actions[bot] commented on GitHub (Jan 8, 2026):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.