prometheus + granfana

prometheus + granfana

下载软件:安装prometheus 服务器:[root@node01 prometheus]#

wget https://github.com/prometheus/prometheus/releases/download/v2.8.1/prometheus-2.8.1.linux-amd64.tar.gz

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

扫描二维码关注公众号,回复: 12801918 查看本文章

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

猜你喜欢

转载自blog.51cto.com/13718453/2666863
今日推荐