[GH-ISSUE #4651] The Prometheus metrics for traffic are inaccurate. #3675

Closed
opened 2026-05-05 14:21:27 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @BQsummer on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4651

Bug Description

The Prometheus metrics for traffic are inaccurate, such as frp_server_traffic_in / frp_server_traffic_out.
I used FRP to connect to a remote desktop for several hours. Below is the server's traffic monitoring, but these two metrics have hardly changed.

Image

Image

frpc Version

0.61.1

frps Version

0.61.1

System Architecture

client is windows 11/amd64, server is ubuntu 24.04/amd64

Configurations

frps.toml

bindPort = 7000

enablePrometheus = true
webServer.addr = "0.0.0.0"
webServer.port = 17600

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @BQsummer on GitHub (Jan 28, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4651 ### Bug Description The Prometheus metrics for traffic are inaccurate, such as frp_server_traffic_in / frp_server_traffic_out. I used FRP to connect to a remote desktop for several hours. Below is the server's traffic monitoring, but these two metrics have hardly changed. ![Image](https://github.com/user-attachments/assets/a1cb6d2a-30c3-4eb2-b3d6-919dcdbf1250) ![Image](https://github.com/user-attachments/assets/632bce91-25c8-40ab-a943-5a3a2d0c0a4f) ### frpc Version 0.61.1 ### frps Version 0.61.1 ### System Architecture client is windows 11/amd64, server is ubuntu 24.04/amd64 ### Configurations # frps.toml bindPort = 7000 enablePrometheus = true webServer.addr = "0.0.0.0" webServer.port = 17600 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [x] Others
Author
Owner

@fatedier commented on GitHub (Feb 7, 2025):

Currently, traffic on this connection is only counted when the connection is closed.

<!-- gh-comment-id:2641835798 --> @fatedier commented on GitHub (Feb 7, 2025): Currently, traffic on this connection is only counted when the connection is closed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3675
No description provided.