Files
3fb88d7a578e66e40bc47b1c10ed86dac0d7fb77
openstack-ansible-ops /prometheus
Ivan Anfimov 3fb88d7a57 Bump prometheus.prometheus to 0.26.2
And little update information in README.rst
Change-Id: I8ea3cf1ec6a9561483e5552b9308c4a8798065ac
2025年06月09日 21:04:31 +00:00
..
2018年08月13日 10:17:03 +02:00
2023年12月18日 14:29:41 +01:00
2025年06月09日 21:04:31 +00:00
2025年06月09日 21:04:31 +00:00

Install Prometheus

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.

Deployment Process

Clone the repo

 cd /opt
 git clone https://opendev.org/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