项目作者: wasanthag

项目描述 :
Deploy collectd , collectd exporter and Prometheus for performance monitoring with ansible
高级语言:
项目地址: git://github.com/wasanthag/ansible_deploy_collectd_prometheus.git


ansible_deploy_collectd_prometheus

Deploy collectd , collectd exporter and Prometheus for performance monitoring with ansible

Deploying Performance monitoring and metrics gathering with Collectd and Prometheus

Ansible playbooks to deploy collectd and prometheus based monitoring solution

Prerequisites

See above list for Sensu

Package versions

Package Version Ports
Prometheus 2.0.0 TCP 9090
Collectd 5.8.0.1
Collectd exporter 0.3.1 TCP 25826, 9103
Keepalived 1.3.9
Grafana 4.6.3.1 TCP 3000
Prometheus Alert Manager 0.12.0 TCP 6783

How to run

To run playbooks first update the group_vars/all with environment specific parameters.
Then run the playbooks in the playbooks folder to deploy individual components or all
at the same time. Each components can be deployed on their own. There are playbooks to
deploy as well as remove as this will help in testing.

Following shows deploying just grafana

  1. ansible-playbook playbooks/install_grafana.yaml

To install all the components one at a time,

  1. ansible-playbook playbooks/install_collectd_exporter.yaml
  2. ansible-playbook playbooks/install_prometheus.yaml
  3. ansible-playbook playbooks/install_alert_manager.yaml
  4. ansible-playbook playbooks/install_grafana.yaml

To install all components and configure sensu checks and alerts

  1. ansible-playbook playbooks/install_all.yaml

To configure target hosts for collectd client ,

  1. ansible-playbook playbooks/configure_collectd_targets.yaml

To Do

  • Add https support and LDAP or similar authentication