首页 > 其他分享 >夜莺v5

夜莺v5

时间:2022-08-17 11:13:35浏览次数:70  
标签:下载安装 service -- 夜莺 systemctl v5 https categraf

官方文档

docker一键部署

1、下载安装包
https://gitlink.org.cn/ccfos/nightingale.git
2、docker-compose up -d
3、备份并删除initsql目录

categraf 客户端

#下载安装包
https://github.com/flashcatcloud/categraf
#解压 
tar zxvf categraf-v0.2.1-linux-amd64 
#软链接
ln -s categraf-v0.2.1-linux-amd64/ categraf
#修改config.toml
[[writers]]的url更改为服务端的ip
hostname="$ip"
#修改categraf.service
ExecStart=/opt/categraf/categraf 
WorkingDirectory=/opt/categraf
#启动 categraf服务
cp categraf.service  /lib/systemd/system/
systemctl daemon-reload
systemctl enable categraf.service
systemctl start categraf.service

exporter

广义上讲所有可以向Prometheus提供监控样本数据的程序都可以被称为一个Exporter。

#安装脚本
https://n9e.github.io/docs/appendix/usecase/a-startup-way-to-building-monitoring-system/#blackbox-exporter
#追加 job的简单写法
cat >prometheus.yml <<EOF
  - job_name: node_exporter
    static_configs:
    - targets:
      - IP1:9100
      - IP2:9100
EOF

日志监控

1、loki的部署
2、日志监控搭建

自愈脚本

ibex客户端的部署

使用方法:
告警规则-->回调地址${ibex}/1-->id为1的自愈脚本会在该规则报警时调用

添加机器人

使用方法:
用户管理-->编辑用户信息-->更多联系方式-->写入token

标签:下载安装,service,--,夜莺,systemctl,v5,https,categraf
From: https://www.cnblogs.com/UshiromiyaBattler/p/16594346.html

相关文章

  • YOLO V5听课笔记
    【YOLOv5教程】花9888买的YOLOv5全套教程2022完整版现分享给大家!免费白嫖!值得收藏!——附赠课程与资料!——(人工智能、深度学习、机器学习)_哔哩哔哩_bilibili ......