[PR #4864] [CLOSED] feat: add proxy_status metric #5066

Closed
opened 2026-05-05 14:54:03 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/4864
Author: @MelvinHuls
Created: 7/2/2025
Status: Closed

Base: devHead: dev


📝 Commits (1)

  • 458a8ba feat: add proxy_status metric

📊 Changes

6 files changed (+43 additions, -0 deletions)

View changed files

📝 pkg/metrics/aggregate/server.go (+6 -0)
📝 pkg/metrics/mem/server.go (+16 -0)
📝 pkg/metrics/mem/types.go (+2 -0)
📝 pkg/metrics/prometheus/server.go (+14 -0)
📝 server/dashboard_api.go (+3 -0)
📝 server/metrics/metrics.go (+2 -0)

📄 Description

Added a proxy_status metric that is either 1 (online) or 0 (offline).

WHY

We want to be able to tell when a customers proxy goes offline, and do alerting on it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/4864 **Author:** [@MelvinHuls](https://github.com/MelvinHuls) **Created:** 7/2/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`458a8ba`](https://github.com/fatedier/frp/commit/458a8bad52357302d3121e1b1f1b0ac5fff9dd85) feat: add proxy_status metric ### 📊 Changes **6 files changed** (+43 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `pkg/metrics/aggregate/server.go` (+6 -0) 📝 `pkg/metrics/mem/server.go` (+16 -0) 📝 `pkg/metrics/mem/types.go` (+2 -0) 📝 `pkg/metrics/prometheus/server.go` (+14 -0) 📝 `server/dashboard_api.go` (+3 -0) 📝 `server/metrics/metrics.go` (+2 -0) </details> ### 📄 Description Added a proxy_status metric that is either 1 (online) or 0 (offline). ### WHY We want to be able to tell when a customers proxy goes offline, and do alerting on it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:54:03 -06:00
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#5066
No description provided.