Merge "Add Prometheus node_exporter"
This commit is contained in:
commit
62039aa3cf
36
prometheus/README.rst
Normal file
36
prometheus/README.rst
Normal 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
|
5
prometheus/ansible-role-requirements.yml
Normal file
5
prometheus/ansible-role-requirements.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: node-exporter
|
||||||
|
scm: git
|
||||||
|
src: https://github.com/cloudalchemy/ansible-node-exporter
|
||||||
|
version: master
|
20
prometheus/installNodeExporter.yml
Normal file
20
prometheus/installNodeExporter.yml
Normal 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
|
1
prometheus/vars/variables.yml
Normal file
1
prometheus/vars/variables.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_exporter_web_listen_address: "{{ ansible_host }}:9100"
|
Loading…
Reference in New Issue
Block a user