部署夜莺的agent:categraf

部署 categraf

官网地址:https://flashcat.cloud/docs/content/flashcat-monitor/categraf/2-installation/

1. 下载并解压的安装包

wget https://download.flashcat.cloud/categraf_ent-v0.3.94-linux-amd64.tar.gz tar zxvf categraf_ent-v0.3.94-linux-amd64.tar.gz
2. 修改 conf/config.toml , 将 providers 改为 [“local”,“http”] ,修改 [http_provider], 配置参考如下
providers = ["local","http"]

[global.n9e_server]
# 将127.0.0.1:17000 替换为n9e的实际地址
[[writers]]
# 将127.0.0.1:17000 替换为n9e的实际地址
[http_provider]
# 将 ${n9e_ip} 替换为 n9e 的实际地址 remote_url = "http://${n9e_ip}:17000/v1/n9e-plus/collects"

3. 启动 categraf 采集器

复制代码
# 以service方式安装, 相当于添加service文件+systemctl daemon-reload 
sudo ./categraf --install # 以service方式查看categraf,相当于systemctl status categraf sudo ./categraf --status # 以service方式卸载, 相当于systemctl stop categraf + 删除service文件 sudo ./categraf --remove # 以service方式启动categraf ,相当于systemctl start categraf # 如果之前有nohup启动的categraf进程,需要先人工停掉原来的categraf进程 sudo ./categraf --start # 以service方式停止categraf,相当于systemctl stop categraf sudo ./categraf --stop # 后续升级categraf只需执行 sudo ./categraf --update --update_url=https://download.flashcat.cloud/categraf-v0.3.40-linux-amd64.tar.gz 升级到v0.3.40版本
复制代码

4. categraf 启动成功之后,会出现在机器列表页面,需要选中之后,将机器挂载到自己所在

 

posted @   潇潇暮鱼鱼  阅读(280)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 我与微信审核的“相爱相杀”看个人小程序副业
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
历史上的今天:
2023-07-12 报错知识库
点击右上角即可分享
微信分享提示