Prometheus 安装与配置
一、二进制包安装
我们可以到 Prometheus 二进制安装包下载页面,根据自己的操作系统选择下载对应的安装包。下面我们将以 Amazon Linux 2 作为演示。
我们以现在的时间为准,下载最新版本 v2.17.1。
这里。
下面我将以 Mac 版本的 Docker 作为演示。
node_exporter 主要用于 *NIX 系统监控, 用 Golang 编写。
https://prometheus.io/download/
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
tar xf node_exporter-0.18.1.linux-amd64.tar.gz
mv node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin/
https://grafana.com/grafana/download
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
tar xf node_exporter-0.18.1.linux-amd64.tar.gz
mv node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin/
https://grafana.com/grafana/download
我推荐使用 rpm 包进行安装,这样很多依赖可以自动解决,而且也配置好了启动脚本。
wget https://dl.grafana.com/oss/release/grafana-6.7.2-1.x86_64.rpm
sudo yum install grafana-6.7.2-1.x86_64.rpm
https://grafana.com/grafana/dashboards?orderBy=name&direction=asc

4.6、查看效果
