图片展示型网站模板,个人如何开发微信小程序,客户关系管理crm课程,北京石景山网站建设夜莺监控使用指南
本文用于解决在部署和应用夜莺监控中遇到的一些问题以及官方文档缺失的某些步骤可能会遇到的坑。
安装过程
我使用是NightingaleCategrafPrometheus的架构。
Nightingale安装文档#xff1a;https://flashcat.cloud/docs/content/flashcat-monitor/night…夜莺监控使用指南
本文用于解决在部署和应用夜莺监控中遇到的一些问题以及官方文档缺失的某些步骤可能会遇到的坑。
安装过程
我使用是NightingaleCategrafPrometheus的架构。
Nightingale安装文档https://flashcat.cloud/docs/content/flashcat-monitor/nightingale-v7/install/intro/Categraf安装文档https://flashcat.cloud/docs/content/flashcat-monitor/categraf/2-installation/ # 以service方式安装, 相当于添加service文件systemctl daemon-reloadsudo ./categraf --install# 以service方式卸载, 相当于systemctl stop categraf 删除service文件sudo ./categraf --remove# 以service方式启动categraf 相当于systemctl start categraf# 如果之前有nohup启动的categraf进程需要先人工停掉原来的categraf进程sudo ./categraf --start# 以service方式停止categraf相当于systemctl stop categrafsudo ./categraf --stop# 以service方式查看categraf相当于systemctl status categrafsudo ./categraf --statusPrometheus安装文档https://prometheus.fuckcloudnative.io/di-san-zhang-prometheus/di-2-jie-an-zhuang/gettingstarted 其中Prometheus启动时应使用./prometheus --web.enable-remote-write-receiver作为启动语句同时Categraf配置文件应做如下改动
# 找到此行配置
[[writers]]
url http://127.0.0.1:17000/prometheus/v1/write# 改成如下配置根据Prometheus的部署确定IP和端口
[[writers]]
url http://localhost:9090/api/v1/write更改完配置后在Prometheus或者Nightingale前端已经可以看到安装了Categraf机器的相关监控信息。
采集过程
Categraf自带的插件配置已经比较完善了但是更改配置后需要重启Categraf或者执行
kill -HUP pidof categraf这样在监控前端才能看到插件的监控数据。