Files
Ivan Anfimov 2986d9719d Bump prometheus.prometheus to 0.27.5
https://github.com/prometheus-community/ansible/releases/tag/0.27.5

Change-Id: I2923bfff6ad8a7a9c69aafa0c8a35b66d4647d97
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025-12-11 23:04:58 +00:00
..
2018-08-13 10:17:03 +02: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