correct typo in template

This commit is contained in:
Ludovic Cartier 2021-05-26 17:34:59 +02:00
parent 9864604f66
commit 649b7b8f00

View File

@ -31,55 +31,47 @@ scrape_configs:
static_configs: static_configs:
- targets: ['localhost:9090'] - targets: ['localhost:9090']
{% if 'node' in prometheus_exporter_packages %} {% if prometheus_node_exporter_targets is defined %}
- job_name: node - job_name: node
scrape_interval: 30s scrape_interval: 30s
scrape_timeout: 10s scrape_timeout: 10s
static_configs: static_configs:
- targets: - targets:
{% if prometheus_node_exporter_targets is defined %}
{% for target in prometheus_node_exporter_targets %} {% for target in prometheus_node_exporter_targets %}
- {{ target }}:9100 - {{ target }}:9100
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endif %}
{% if 'mysqld' in prometheus_exporter_packages %} {% if prometheus_mysqld_exporter_targets is defined %}
- 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_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 %}
{% endif %} {% endif %}
{% endif %}
{% if 'mongodb' in prometheus_exporter_packages %} {% if prometheus_mongodb_exporter_targets is defined %}
- job_name: mongodb - job_name: mongodb
scrape_interval: 30s scrape_interval: 30s
scrape_timeout: 10s scrape_timeout: 10s
static_configs: static_configs:
- targets - targets:
{% if prometheus_mongodb_exporter_targets is defined %}
{% for target in prometheus_mongodb_exporter_targets %} {% for target in prometheus_mongodb_exporter_targets %}
- {{ target }}:9001 - {{ target }}:9001
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endif %}
{% if 'postgresql' in prometheus_exporter_packages %} {% if prometheus_postgres_exporter_targets is defined %}
- job_name: postgresql - job_name: postgresql
scrape_interval: 30s scrape_interval: 30s
scrape_timeout: 10s scrape_timeout: 10s
static_configs: static_configs:
- targets: - targets:
{% if prometheus_postgres_exporter_targets is defined %}
{% for target in prometheus_postgres_exporter_targets %} {% for target in prometheus_postgres_exporter_targets %}
- {{ target }}:9187 - {{ target }}:9187
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endif %}