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

syslog-ng 发送metric 到 Prometheus + Grafana

1: 背景:

syslog-ng 作为很多linux 收集日志的重要工具,当然很多splunk 的source 也是用这个收集的,下面就介绍用 Prometheus来收集数据,然后发送到 grafana 来展示,还是很直观的。下面就来详细道来:

2: 安装 syslog-ng node exporter:

Prometheus: syslog-ng exporter - Blog - syslog-ng Community - syslog-ng Community

Compiling the syslog-ng exporter

First of all, you need to set up a go development environment. Well, this is probably an overstatement as we just create a few directories under the home directory and set up an environment variable for go, pointing to the directory structure we just created (change it to your actual path name):

cd
mkdir go
cd go
mkdir bin src
export GOPATH="/root/go"

Now we check out the source code from Git


http://www.kler.cn/a/132196.html

相关文章:

  • 美术作品的著作权
  • SQL Server如何建表
  • upload-labs关卡9(基于win特性data流绕过)通关思路
  • lua中的正则表达式
  • Linux C/C++全栈开发知识图谱(后端/音视频/游戏/嵌入式/高性能网络/存储/基础架构/安全)
  • [C/C++]数据结构 链表(单向链表,双向链表)
  • 从0到0.01入门 Webpack| 001.精选 Webpack面试题
  • web3资讯及远程工作
  • CTFhub-RCE-综合过滤练习
  • pycharm/vscode 配置black和isort
  • m1 rvm install 3.0.0 Error running ‘__rvm_make -j8‘
  • 离线任务的稳定性
  • 程序性能分析
  • 【汇编】Loop指令、段前缀
  • 【GitHub】如果在进行PR时忘记 cloning forked repo,该如何进行修补呢
  • CF1899A Game with Integers(思维题)
  • C++文件操作知识点总结
  • 计算某个整数含有几位数
  • 基于人工电场算法优化概率神经网络PNN的分类预测 - 附代码
  • YOLOv8独家改进: Inner-IoU基于辅助边框的IoU损失,高效结合 GIoU, DIoU, CIoU,SIoU 等 | 2023.11