CF-Probe 性能监控探针部署与配置
本卡片记录服务器上部署的 cf-probe 监控探针服务,用于性能指标和网络状态监控。
1. 部署命令
服务通过以下一键脚本进行安装:
curl -sL https://tz.032117.xyz/install.sh | bash -s install \
-id=[REDACTED] \
-secret='[REDACTED]' \
-url=https://tz.032117.xyz/update \
-collect_interval=0 \
-interval=60 \
-ping=http \
-reset_day=1 \
-ct=sd-ct-dualstack.ip.zstaticcdn.com \
-cu=sd-cu-dualstack.ip.zstaticcdn.com \
-cm=sd-cm-dualstack.ip.zstaticcdn.com \
-bd=lf3-ips.zstaticcdn.com2. 配置文件
配置文件位于 /etc/config/cf-probe/config.conf,主要参数:
SERVER_ID:[REDACTED]SECRET:加密鉴权密钥WORKER_URL:https://tz.032117.xyz/update(上报端点)REPORT_INTERVAL:60(每 60 秒上报一次)
3. Systemd 服务配置
探针由 systemd 在后台守护运行。服务文件为 /etc/systemd/system/cf-probe.service:
[Unit]
Description=CF Server Monitor Probe Agent
After=network.target network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/bin/bash "/usr/local/bin/cf-probe.sh"
Restart=always
RestartSec=5
User=root
Group=root
# 生产级通用平滑优先级约束:永远不挤占前台核心业务
Nice=19
CPUSchedulingPolicy=other
IOSchedulingClass=idle
IOSchedulingPriority=7
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cf-probe
[Install]
WantedBy=multi-user.target4. 常用管理命令
# 查看探针状态
systemctl status cf-probe
# 重启探针
systemctl restart cf-probe
# 查看探针上报日志
journalctl -u cf-probe -n 50 -f