[GH-ISSUE #1357] [feature request] support prometheus #1077

Closed
opened 2026-05-05 12:41:25 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @jeffrey4l on GitHub (Aug 6, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1357

frp should export an url like /metrics, which can be scraped by prometheus server. In this way we can monitor whether frp or the clients works properly.

Originally created by @jeffrey4l on GitHub (Aug 6, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1357 frp should export an url like `/metrics`, which can be scraped by prometheus server. In this way we can monitor whether frp or the clients works properly.
gitea-mirror 2026-05-05 12:41:25 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@zyfdegh commented on GitHub (Jan 2, 2020):

There's a typo, corrected: /metrics

<!-- gh-comment-id:570110439 --> @zyfdegh commented on GitHub (Jan 2, 2020): There's a typo, corrected: `/metrics`
Author
Owner

@fatedier commented on GitHub (Feb 20, 2020):

#1668

<!-- gh-comment-id:589016805 --> @fatedier commented on GitHub (Feb 20, 2020): #1668
Author
Owner

@jeffrey4l commented on GitHub (Mar 19, 2020):

Thanks for the implementation.

I just check the new release binary, seem only some common process metric is exported. Could we add metrics related to each proxy statistics? like tcp traffic in and out in dashboard.

<!-- gh-comment-id:600945017 --> @jeffrey4l commented on GitHub (Mar 19, 2020): Thanks for the implementation. I just check the new release binary, seem only some common process metric is exported. Could we add metrics related to each proxy statistics? like tcp traffic in and out in dashboard.
Author
Owner

@fatedier commented on GitHub (Mar 19, 2020):

@jeffrey4l https://github.com/fatedier/frp/blob/master/models/metrics/prometheus/server.go#L58
All metrics registered here including net traffic.

<!-- gh-comment-id:600960038 --> @fatedier commented on GitHub (Mar 19, 2020): @jeffrey4l https://github.com/fatedier/frp/blob/master/models/metrics/prometheus/server.go#L58 All metrics registered here including net traffic.
Author
Owner

@jeffrey4l commented on GitHub (Mar 19, 2020):

yeah, i found it.
seems when the metrics value is 0, it is not show up in /metrics url.

thanks.

<!-- gh-comment-id:600963989 --> @jeffrey4l commented on GitHub (Mar 19, 2020): yeah, i found it. seems when the metrics value is 0, it is not show up in `/metrics` url. thanks.
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#1077
No description provided.