openstack-ansible-ops/grafana
Duncan Martin Walker 1006dab986 Updates to Grafana role
The inclusion of the grafana submodule contradicts the deployment
process in the README, where it is explicitly cloned to
/etc/ansible/roles. The empty folder for the submodule takes
higher precendence than explicit clone, meaning that the grafana
role is found, but contains no tasks. The submodule has been
deleted to stop this.

There are also failures when running behind a proxy in the
traefik-common role, These are now avoided by running the role
with deployment_environment_variables set.

Change-Id: Icc34087e17906c763286b98591bade73fa7c022e
2020-01-07 10:34:25 +00:00
..
conf.d Add grafana 2018-04-13 10:31:34 -05:00
env.d Add grafana 2018-04-13 10:31:34 -05:00
roles Updates to Grafana role 2020-01-07 10:34:25 +00:00
vars Add variables to connect ELK and Grafana 2018-04-13 23:08:31 -05:00
ansible-role-requirements.yml Add project directory to overlay inventories 2019-01-16 22:25:11 +00:00
installGrafana.yml Updates to Grafana role 2020-01-07 10:34:25 +00:00
inventory.example.yml Add project directory to overlay inventories 2019-01-16 22:25:11 +00:00
readme.rst Update rollback plan and configs 2018-04-26 16:41:51 -05:00
site.yml Add project directory to overlay inventories 2019-01-16 22:25:11 +00:00

readme.rst

Install Grafana

tags

openstack, ansible

About this repository

This set of playbooks will deploy Grafana. If this is being deployed as part of an OpenStack all of the inventory needs will be provided for.

These playbooks require Ansible 2.4+.

Optional | configure haproxy endpoints

Edit the /etc/openstack_deploy/user_variables.yml file and add fiel following lines

haproxy_extra_services:
  - service:
      haproxy_service_name: grafana
      haproxy_ssl: False
      haproxy_backend_nodes: "{{ groups['grafana'] | default([]) }}"
      haproxy_port: 3000  # This is set using the "grafana_port" variable
      haproxy_balance_type: tcp

Deployment Process

Clone the grafana-osa repo

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

Clone the grafana role

cd /opt
git clone https://github.com/cloudalchemy/ansible-grafana /etc/ansible/roles/grafana

Copy the env.d file into place

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

Copy the conf.d file into place

cp conf.d/grafana.yml /etc/openstack_deploy/conf.d/

Create the containers

Create the containers

cd /opt/openstack-ansible/playbooks
openstack-ansible lxc-containers-create.yml -e 'container_group=grafana'

install grafana

cd /opt/openstack-ansible-ops/grafana
openstack-ansible installGrafana.yml