You are on page 1of 2

Hệ thống yêu cầu

Centos 7

I. Cài đặt Ansible

yum update -y

yum install python3

pip3 install ansible jmespath selinux

Kiểm tra phiên bản của ansible

ansible --version

II. Prometheus

Hướng dẫn cái Prometheus

Download bản cài của cloudacademy

ansible-galaxy install cloudalchemy.prometheus

Chạy playbook prometheus.yml ( download trên Github )

ansible-playbook prometheus.yml

III. snmp_exporter

Hướng dẫn cài snmp_exporter

ansible-galaxy install cloudalchemy.snmp-exporter

Chạy playbook snmp_exporter.yml ( download trên Github )

ansible-playbook snmp_exporter.yml

IV. blackbox_exporter

Hướng dẫn cài đặt blackbox_exporter

ansible-galaxy install cloudalchemy.blackbox-exporter

Chạy playbook blackbox-exporter

ansible-playbook blackbox_exporter.yml

V. node_exporter
Hướng dẫn cài đặt node_exporter

ansible-galaxy install cloudalchemy.node-exporter

Hướng dẫn chay playbook node_exporter

ansible-playbook node_exporter.yml

VI. alertmanager

Hướng dẫn cài đặt alertmanager

ansible-galaxy install cloudalchemy.alertmanager

Hướng dẫn chay playbook alertmanager

ansible-playbook alertmanager.yml

VII. Kiểm tra dịch vụ

systemctl -xe -u <tên dịch vụ>

VIII. Thông tin file configuration

/etc/snmp_exporter/snmp_exporter.yml

/etc/prometheus/prometheus.ym

/etc/alertmanager/alertmanager.yml

/etc/ blackbox_exporter.yml

You might also like