prometheus + granfana
下载软件:安装prometheus 服务器:[root@node01 prometheus]#
tar xvfz prometheus-2.8.1.linux-amd64.tar.gz -C /usr/local/
cd /usr/local/
ln -sv prometheus-2.8.1.linux-amd64 prometheus
cd prometheus
./prometheus --version
groupadd prometheus
useradd -g prometheus -s /sbin/nologin prometheus
id prometheus
chown -R prometheus:prometheus /usr/local/prometheus
cat /etc/passwd
mkdir -p /home/software/prometheus-date/
chown -R prometheus:prometheus /home/software/prometheus-date/
touch /usr/lib/systemd/system/prometheus.service
chown -R prometheus:prometheus /usr/lib/systemd/system/prometheus.service
vim /usr/lib/systemd/system/prometheus.service