当前位置: 首页 > news >正文

夜莺监控使用指南

夜莺监控使用指南

本文用于解决在部署和应用夜莺监控中遇到的一些问题以及官方文档缺失的某些步骤可能会遇到的坑。

安装过程

我使用是Nightingale+Categraf+Prometheus的架构。

  • 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  --status
  • Prometheus安装文档: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`

这样在监控前端才能看到插件的监控数据。

http://www.lryc.cn/news/419159.html

相关文章:

  • MySQLDM笔记-查询库中是否存在列出的表名及查询库中列出的不存在的表名
  • 第9天 xxl-job
  • C++字符串<string>库
  • 智能分析,安全无忧:AI视频分析技术在安全生产中的深度应用
  • 02 Canal的安装使用
  • 【网络安全】玲珑安全第四期
  • 【工具】图片背景移除界面 UI 源码
  • CentOS linux 安装openssl(openssl拒绝服务漏洞【CVE-2022-0778】解决)
  • 假如有一个嵌套集合,怎么通过stream流将集合放到一个集合之中?
  • flutter doctor出现 Unable to find bundled Java version
  • Linux系统修改root密码
  • AI时代,我们还可以做什么?
  • 【生成式人工智能-十-文字、图片、声音生成策略】
  • git pull 注意事项
  • 拥抱变革:旗晟智能巡检机器人系统重塑高风险行业巡检模式
  • 监听器——监听着我们WEB项目中的域对象
  • cs使用说明
  • skynet 连接redis
  • quark-design 原生引入使用说明
  • UE开发中的设计模式(二) —— 中介者模式
  • 安卓应用开发学习:聚合数据API获取天气预报
  • 设计模式 - 抽象工厂模式
  • 塔子哥选数字-阿里淘天2024笔试(codefun2000)
  • 【leetcode】杨辉三角(Java语言描述)
  • Vue - 关于vue-kinesis 移动动画组件
  • leetCode- - - 链表
  • Ashok:一款多功能开源网络侦查OSINT工具
  • 没有获取淘宝API的资质怎么获取淘宝数据
  • SQL手工注入
  • 【SQL】大的国家