Add Prometheus node_exporter

This change introduces node_exporter into the monitoring stack. The
role from cloudalchemi is used for the bulk of the deployment.

Change-Id: I1343db378f9dee056a5fb67e0dc9e89e11bc7e28
This commit is contained in:
Miouge1 2018-07-30 17:02:51 +02:00
parent 200e1dbe4c
commit 5938b03d4e
4 changed files with 62 additions and 0 deletions

36
prometheus/README.rst Normal file
View File

@ -0,0 +1,36 @@
Install Prometheus
##################
:tags: openstack, ansible
About this repository
---------------------
This set of playbooks will deploy Prometheus. 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+.**
Deployment Process
------------------
Clone the repo
.. code-block:: bash
cd /opt
git clone https://github.com/openstack/openstack-ansible-ops
Downloading role dependencies
.. code-block:: bash
cd /opt/openstack-ansible-ops/prometheus
ansible-galaxy install -r ansible-role-requirements.yml
Install node_exporter
.. code-block:: bash
cd /opt/openstack-ansible-ops/prometheus
openstack-ansible installNodeExporter.yml

View File

@ -0,0 +1,5 @@
---
- name: node-exporter
scm: git
src: https://github.com/cloudalchemy/ansible-node-exporter
version: master

View File

@ -0,0 +1,20 @@
---
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: node_exporter
hosts: hosts
vars_files:
- vars/variables.yml
roles:
- role: node-exporter

View File

@ -0,0 +1 @@
node_exporter_web_listen_address: "{{ ansible_host }}:9100"