4d1f37359d
This patch adds the ansible role to deploy the prometheus service which can be used to collect performance metrics accross the environment Partially-Implements: blueprint prometheus Change-Id: I908b9c9dad63ab5c9b80be1e3a80a4fc8191cb9e
20 lines
705 B
YAML
20 lines
705 B
YAML
---
|
|
- name: Creating prometheus database user and setting permissions
|
|
kolla_toolbox:
|
|
module_name: mysql_user
|
|
module_args:
|
|
login_host: "{{ database_address }}"
|
|
login_port: "{{ database_port }}"
|
|
login_user: "{{ database_user }}"
|
|
login_password: "{{ database_password }}"
|
|
name: "{{ prometheus_mysql_exporter_database_user }}"
|
|
password: "{{ prometheus_mysql_exporter_database_password }}"
|
|
host: "%"
|
|
priv: "*.*:PROCESS,REPLICATION CLIENT,SELECT"
|
|
append_privs: "yes"
|
|
run_once: True
|
|
delegate_to: "{{ groups['prometheus-mysqld-exporter'][0] }}"
|
|
when:
|
|
- enable_prometheus_mysqld_exporter | bool
|
|
- not use_preconfigured_databases | bool
|