Skip to content

[Feature Request] Get traffic metrics via httpPlugins ops callback #5089

@gregoiregentil

Description

@gregoiregentil

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions