Linux node_exporter安装部署

  • node_exporter部署

    tar -xzvf node_exporter-0.18.1.linux-amd64.tar.gz

    cd node_exporter-0.18.1.linux-amd64

    nohup ./node_exporter >> output.log 2>&1 &

  • prometheus部署

    tar -xzvf prometheus-2.15.2.linux-amd64.tar.gz

    cd prometheus-2.15.2.linux-amd64

    nohup ./prometheus --config.file=prometheus.yml --web.enable-lifecycle >> /dev/null 2>&1 &

curl -XPOST http://127.0.0.1:9090/-/reload 

  • Redis监控

    tar -xzvf redis_exporter-v1.3.5.linux-amd64.tar.gz

    cd redis_exporter-v1.3.5.linux-amd64

    nohup ./redis_exporter -redis.addr IP地址:6379 -redis.password 密码 >> /dev/null 2>&1 &

  • 安装Grafana并启动

    tar -xzvf grafana-6.5.2.linux-amd64.tar.gz cd grafana-6.5.2.linux-amd64 nohup bin/grafana-server >> /dev/null 2>&1 &

  • 参考文档

  1. https://www.cnblogs.com/zqyanywn/p/9828782.html
  2. https://www.cnblogs.com/zeq912/p/10614019.html

评论

暂无评论