Files
b5a493359bc6e6a1078b6b2152c9c88e269e98d4
openstack-ansible-ops /prometheus
Marcus Klein b5a493359b upgraded prometheus.prometheus collection does not need ansible fact vars anymore
Change-Id: I638dae545e33259798ef849396289cb53569c372
2025年03月13日 11:17:46 +01:00
..
2018年08月13日 10:17:03 +02:00
2023年12月18日 14:29:41 +01:00
2023年12月18日 14:29:41 +01:00

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

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

Downloading role dependencies

 cd /opt/openstack-ansible-ops/prometheus
 ansible-galaxy install -r requirements.yml

Install node_exporter

 cd /opt/openstack-ansible-ops/prometheus
 openstack-ansible installNodeExporter.yml

If you want to deploy the mysqld_exporter, you need to create the Galera user for it first

 galera_additional_users:
 -name:"exporter"
 host:'%'
 password:"{{ prometheus_mysqld_exporter_galera_password }}"
 priv:'*.*:PROCESS,REPLICATION CLIENT,SELECT,SLAVE MONITOR'
 resource_limits:
 MAX_USER_CONNECTIONS:3
 check_hostname:false
 state: present

Then install the mysqld_exporter

 cd /opt/openstack-ansible-ops/prometheus
 openstack-ansible installMysqldExporter.yml