openstack-ansible-ops/prometheus/installMysqldExporter.yml
Marcus Klein 1c0bd2ae11 Add Prometheus Mysqld exporter
Change-Id: I670597179b701aab1ca8e433be2f3abf1e78650a
2023-12-18 14:29:41 +01:00

18 lines
430 B
YAML

---
- name: Refresh local facts
hosts: galera_all
tasks:
- name: refresh local facts
setup:
- name: mysqld_exporter
hosts: galera_all
roles:
- role: prometheus.prometheus.mysqld_exporter
vars:
mysqld_exporter_host: "{{ ansible_host }}"
mysqld_exporter_password: "{{ prometheus_mysqld_exporter_galera_password }}"
mysqld_exporter_web_listen_address: "{{ ansible_host }}:9104"