openstack-ansible-ops/cluster_metrics
2016-11-17 13:40:58 +00:00
..
etc implement minimal metric collection 2016-09-09 13:08:38 -05:00
files Adding influx relay to make the existing monitoring stack highly available 2016-11-10 15:54:56 +00:00
grafana-dashboards Updated the grafana dash boards 2016-09-18 10:17:22 -05:00
handlers implement minimal metric collection 2016-09-09 13:08:38 -05:00
templates Adding influx relay to make the existing monitoring stack highly available 2016-11-10 15:54:56 +00:00
ansible.cfg implement minimal metric collection 2016-09-09 13:08:38 -05:00
playbook-grafana.yml Use apt_repository update_cache feature 2016-11-04 16:51:31 +00:00
playbook-influx-db.yml Merge "Adding influx relay to make the existing monitoring stack highly available" 2016-11-17 13:40:58 +00:00
playbook-influx-telegraf.yml Use apt_repository update_cache feature 2016-11-04 16:51:31 +00:00
playbook-kapacitor.yml Use apt_repository update_cache feature 2016-11-04 16:51:31 +00:00
playbook-metrics-lb.yml Adding influx relay to make the existing monitoring stack highly available 2016-11-10 15:54:56 +00:00
readme.rst Replace github with git.o.o 2016-11-02 12:16:10 +11:00
vars.yml Adding influx relay to make the existing monitoring stack highly available 2016-11-10 15:54:56 +00:00

Gather and visualize cluster wide metrics

date

2016-09-01

tags

openstack, ansible

category

*openstack, *nix

About this repository

This set of playbooks will deploy InfluxDB, Telegraf, Grafana and Kapacitor for the purpose of collecting metrics on an OpenStack cluster.

Process

Clone the OPS repo

cd /opt
git clone https://git.openstack.org/openstack/openstack-ansible-ops

Copy the env.d files into place

cd openstack-ansible-ops/cluster_metrics
cp etc/env.d/cluster_metrics.yml /etc/openstack_deploy/env.d/

Add the export to update the inventory file location

export ANSIBLE_INVENTORY=/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py

If you are running the HA Proxy you should run the following playbook as well to enable the grafana port 8089

openstack-ansible playbook-metrics-lb.yml

Create the containers

openstack-ansible /opt/openstack-ansible/playbooks/lxc-containers-create.yml -e container_group=cluster-metrics

Install InfluxDB

openstack-ansible playbook-influx-db.yml

Install Influx Telegraf

openstack-ansible playbook-influx-telegraf.yml --forks 100

Install grafana

If you're proxy'ing grafana you will need to provide the full root_path when you run the playbook add the following -e grafana_root_url='https://cloud.something:8443/grafana/'

openstack-ansible playbook-grafana.yml -e galera_root_user=root -e galera_address='127.0.0.1'

Once that last playbook is completed you will have a functioning InfluxDB, Telegraf, and Grafana metric collection system active and collecting metrics. Grafana will need some setup, however functional dash boards have been provided in the grafana-dashboards directory.

Install Kapacitor

openstack-ansible playbook-kapacitor.yml