夜莺v5

官方文档

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
#没有systemctl直接启动
nohup ./categraf --configs /opt/categraf/conf &

32位操作系统使用 go编译categraf
go的安装包
安装教程

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

posted @ 2022-08-17 11:01  战人  阅读(406)  评论(0)    收藏  举报