Files
master
Ivan Anfimov
9cfdff7970
Bump prometheus.prometheus to 0.27.0
https://github.com/prometheus-community/ansible/releases/tag/0.27.0 Change-Id: I02e44fc73c3005725fcfda0184eeebe8c56e3d4d Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
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-opsDownloading role dependencies
cd /opt/openstack-ansible-ops/prometheus
ansible-galaxy install -r requirements.ymlInstall node_exporter
cd /opt/openstack-ansible-ops/prometheus
openstack-ansible installNodeExporter.ymlIf 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: presentThen install the mysqld_exporter
cd /opt/openstack-ansible-ops/prometheus
openstack-ansible installMysqldExporter.yml