Giter VIP home page Giter VIP logo

ansible-prometheus_grafana's Introduction

部署 prometheus+grafana

部署hosts文件示例:

说明:

  1. 下载软件包pgpackage.tar.gz并上传到/root/package目录
        链接:`https://pan.baidu.com/s/1P-xSjZWsFUWR10yWM0nbRw`   提取码:7ukr 
        MD5:a253f06acde16502d7d903e6915ca30a
  2. 执行init.sh脚本
  3. 改hosts配置
  4. 直接执行`# ansible-playbook -i hosts promemtheus_grafana.yml `
##########
[prometheus]
192.168.2.29 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123" targets=192.168.2.29
# targets 定义prometheus监听地址


##########
[grafana]
192.168.2.29 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123" http_addr=192.168.2.29
# http_addr 定义grafana监听地址


##########
#[node_exporter]
#192.168.2.29 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123"

测试说明:

1.prometheus测试,访问部署完的节点的9090端口
   `http://IP:9090`
2.grafana测试,访问部署完的节点的3000端口,默认账户admin/admin
   `http://IP:3000`
3.node_exporter测试
   `http://IP:9100`

ansible-prometheus_grafana's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.