Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分享一个用于 frps 的 Grafana 的仪表盘 #3961

Open
2 of 11 tasks
sqkkyzx opened this issue Jan 30, 2024 · 10 comments
Open
2 of 11 tasks

分享一个用于 frps 的 Grafana 的仪表盘 #3961

sqkkyzx opened this issue Jan 30, 2024 · 10 comments
Labels

Comments

@sqkkyzx
Copy link

sqkkyzx commented Jan 30, 2024

预览

preview

功能

  • 展示 frp 服务器的连接数、代理数和流量数据等关键指标。

  • 提供对 frp 服务器的流量、代理计数和连接计数的实时监控。

使用说明

  1. 为你的frp 开启 Prometheus 监控,可以查看文档

  2. 配置 Prometheus 收集您的 frp 服务器的监控数据。

  3. 导入本监控面板,在这里可以找到

  4. 在Grafana中选择frp监控面板,您将能够实时监控frp服务器的状态和性能指标。

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@fatedier fatedier added the doc label Jan 31, 2024
@fatedier
Copy link
Owner

挺好,我想想在文档里找个地方统一放一下这一类的资源分享。

@qzj603
Copy link

qzj603 commented Mar 12, 2024

如果dashboard配置了登录账号和密码,Grafana怎么监控呢?

@sqkkyzx
Copy link
Author

sqkkyzx commented Mar 13, 2024

如果dashboard配置了登录账号和密码,Grafana怎么监控呢?

监控frps使用的是Prometheus数据源,在数据源设置时可以配置Basic Authentication

@qzj603
Copy link

qzj603 commented Mar 13, 2024

具体怎么操作,能否指导一下,谢谢。

@Yorafa
Copy link

Yorafa commented May 20, 2024

您好我请问一下在第二步配置Prometheus中具体需要做什么?我按以下尝试配置但不起作用

# prometheus.yml
global:
    scrape_interval:     15s # 默认抓取周期
    external_labels:
        monitor: 'codelab-monitor'
scrape_configs:
    - job_name: 'frp'
      scrape_interval: 5s
      metrics_path: /metrics
      static_configs:
          - targets: ['dashboard_addr']

@sqkkyzx
Copy link
Author

sqkkyzx commented May 20, 2024

您好我请问一下在第二步配置Prometheus中具体需要做什么?我按以下尝试配置但不起作用

# prometheus.yml
global:
    scrape_interval:     15s # 默认抓取周期
    external_labels:
        monitor: 'codelab-monitor'
scrape_configs:
    - job_name: 'frp'
      scrape_interval: 5s
      metrics_path: /metrics
      static_configs:
          - targets: ['dashboard_addr']

目标地址未指定:
在 static_configs 中的 targets 字段中使用了 ['dashboard_addr'],这看起来像是一个占位符。你需要将 dashboard_addr 替换为实际的监控目标地址,例如 ['192.168.1.100:7500']。这里的地址和端口应该是Frp Dashboard 的实际地址和端口。

@wuai1024
Copy link

wuai1024 commented Jun 5, 2024

这个Grafana仪表有点小bug。

我在代理中是有 sudp 的,如下图:
image

在Grafana中,显示为空,如下图:
image

@sqkkyzx
Copy link
Author

sqkkyzx commented Jun 5, 2024

这个Grafana仪表有点小bug。

我在代理中是有 sudp 的,如下图: image

在Grafana中,显示为空,如下图: image

收到。

@katfionn
Copy link

katfionn commented Sep 3, 2024

大佬们,配置 Prometheus 收集您的 frp 服务器的监控数据。这一步,有没有哪里有详细的图文操作,具体到什么框框填什么、遇到XXX报错怎么解决

@thqiang
Copy link

thqiang commented Sep 17, 2024

@sqkkyzx @fatedier
请问下0.60版本的frps,已经开启了prometheus,但是无法获取到metrics,可能是什么原因呢?
frps版本:

./frps --version
0.60.0

frps配置:

cat newfrps.ini 
[common]
bind_port = 6666
tls_only = true
max_pool_count = 653
dashboard_port = 9999
dashboard_user = admin
dashboard_pwd = xxxxxx
enablePrometheus = true

metric页面404:
curl -u admin 192.100.1.51:9999/metrics Enter host password for user 'admin': 404 page not found

dashboard页面正常:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants