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

你可能感兴趣的:(splunk,prometheus,grafana,syslog-ng,splunk,监控)