mysqld instead of mysql

This commit is contained in:
Ludovic Cartier 2021-05-26 17:11:20 +02:00
parent 44417b476f
commit 9864604f66
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
- name: 'prometheus | MySQL exporter' - name: 'prometheus | MySQL exporter'
include_tasks: 'mysqld_exporter.yml' include_tasks: 'mysqld_exporter.yml'
when: when:
- "'mysql' in prometheus_exporter_packages" - "'mysqld' in prometheus_exporter_packages"
- name: 'prometheus | PostgreSQL exporter' - name: 'prometheus | PostgreSQL exporter'
include_tasks: 'postgresql_exporter.yml' include_tasks: 'postgresql_exporter.yml'

View File

@ -44,13 +44,13 @@ scrape_configs:
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if 'mysql' in prometheus_exporter_packages %} {% if 'mysqld' in prometheus_exporter_packages %}
- job_name: mysql - job_name: mysql
scrape_interval: 30s scrape_interval: 30s
scrape_timeout: 10s scrape_timeout: 10s
static_configs: static_configs:
- targets: - targets:
{% if prometheus_mysql_exporter_targets is defined %} {% if prometheus_mysqld_exporter_targets is defined %}
{% for target in prometheus_mysqld_exporter_targets %} {% for target in prometheus_mysqld_exporter_targets %}
- {{ target }}:9104 - {{ target }}:9104
{% endfor %} {% endfor %}