
This patch adds the prometheus_memcached_exporter[0] to the list of available exporters, following the conventions used by the previously integrated exporters. [0] https://github.com/openstack/kolla/tree/master/docker/prometheus-memcached-exporter Change-Id: I103b0ee19ef2fd17ce19a27d60773675ad234c1c Closes-Bug: #1773303 Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org>
51 lines
1.7 KiB
Django/Jinja
51 lines
1.7 KiB
Django/Jinja
global:
|
|
scrape_interval: 60s
|
|
scrape_timeout: 10s
|
|
evaluation_interval: 15s
|
|
external_labels:
|
|
monitor: 'kolla'
|
|
|
|
scrape_configs:
|
|
- job_name: prometheus
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['prometheus'] %}
|
|
- '{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ prometheus_port }}'
|
|
{% endfor %}
|
|
|
|
{% if enable_prometheus_node_exporter | bool %}
|
|
- job_name: node
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['prometheus-node-exporter'] %}
|
|
- '{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ hostvars[host]['prometheus_node_exporter_port'] }}'
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if enable_prometheus_mysqld_exporter | bool %}
|
|
- job_name: mysqld
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['prometheus-mysqld-exporter'] %}
|
|
- '{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ hostvars[host]['prometheus_mysqld_exporter_port'] }}'
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if enable_prometheus_haproxy_exporter | bool %}
|
|
- job_name: haproxy
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['prometheus-haproxy-exporter'] %}
|
|
- '{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ hostvars[host]['prometheus_haproxy_exporter_port'] }}'
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if enable_prometheus_memcached_exporter | bool %}
|
|
- job_name: memcached
|
|
static_configs:
|
|
- targets:
|
|
{% for host in groups['prometheus-memcached-exporter'] %}
|
|
- '{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ hostvars[host]['prometheus_memcached_exporter_port'] }}'
|
|
{% endfor %}
|
|
{% endif %}
|