[GH-ISSUE #4974] prometheus trafficOut metric counter decreasing #3921

Closed
opened 2026-05-05 14:29:58 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @meriororen on GitHub (Sep 9, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4974

Bug Description

I have this problem when scraping /metrics on frp server, it is supposed to be a non-decreasing counter (unless the frp server itself restarts), but it seems like the counter sometimes decrease as such

Image

frpc Version

v0.61.0

frps Version

v0.61.0

System Architecture

linux/amd64

Configurations

bindPort = 7000

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "*****"
webServer.password = "***********"

enablePrometheus = true

transport.tls.force = true

[[httpPlugins]]
addr = "127.0.0.1:7200"
path = "/handler"
ops = ["Login"]

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 @meriororen on GitHub (Sep 9, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4974 ### Bug Description I have this problem when scraping /metrics on frp server, it is supposed to be a non-decreasing counter (unless the frp server itself restarts), but it seems like the counter sometimes decrease as such <img width="1512" height="982" alt="Image" src="https://github.com/user-attachments/assets/7add5fda-2193-4551-a70b-220ae892ec41" /> ### frpc Version v0.61.0 ### frps Version v0.61.0 ### System Architecture linux/amd64 ### Configurations bindPort = 7000 webServer.addr = "0.0.0.0" webServer.port = 7500 webServer.user = "*****" webServer.password = "***********" enablePrometheus = true transport.tls.force = true [[httpPlugins]] addr = "127.0.0.1:7200" path = "/handler" ops = ["Login"] ### 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
gitea-mirror 2026-05-05 14:29:58 -06:00
Author
Owner

@fatedier commented on GitHub (Sep 21, 2025):

Based on my review of the code so far, I cannot identify any cause other than the server having been restarted.

<!-- gh-comment-id:3316016920 --> @fatedier commented on GitHub (Sep 21, 2025): Based on my review of the code so far, I cannot identify any cause other than the server having been restarted.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 6, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:3369575703 --> @github-actions[bot] commented on GitHub (Oct 6, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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#3921
No description provided.