From a55769b00ac044ce6932d0e979b4e9f582586703 Mon Sep 17 00:00:00 2001 From: Doug Szumski Date: Tue, 26 Feb 2019 16:25:52 +0000 Subject: [PATCH] Update arguments for starting Prometheus exporters The patch that this depends on in the Kolla repo updates various Prometheus exporters. In some cases the command line syntax has changed which prevents them from starting. This commit updates the command line syntax in-line with the new versions. Depends-On: I846989b16fa7f76b11b309b7a9764cec8aaf538d Change-Id: I1c8c56059e51442d7bf2248b9632021cb529b4ba --- .../prometheus/templates/prometheus-haproxy-exporter.json.j2 | 2 +- .../prometheus/templates/prometheus-mysqld-exporter.json.j2 | 2 +- .../roles/prometheus/templates/prometheus-node-exporter.json.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/prometheus/templates/prometheus-haproxy-exporter.json.j2 b/ansible/roles/prometheus/templates/prometheus-haproxy-exporter.json.j2 index 0964be4abd..c4b03497bb 100644 --- a/ansible/roles/prometheus/templates/prometheus-haproxy-exporter.json.j2 +++ b/ansible/roles/prometheus/templates/prometheus-haproxy-exporter.json.j2 @@ -1,5 +1,5 @@ { - "command": "/opt/haproxy_exporter/haproxy_exporter -haproxy.scrape-uri unix:/var/lib/kolla/haproxy/haproxy.sock -web.listen-address {{ api_interface_address }}:{{ prometheus_haproxy_exporter_port }}", + "command": "/opt/haproxy_exporter/haproxy_exporter --haproxy.scrape-uri unix:/var/lib/kolla/haproxy/haproxy.sock --web.listen-address {{ api_interface_address }}:{{ prometheus_haproxy_exporter_port }}", "config_files": [], "permissions": [ { diff --git a/ansible/roles/prometheus/templates/prometheus-mysqld-exporter.json.j2 b/ansible/roles/prometheus/templates/prometheus-mysqld-exporter.json.j2 index 25d88bb253..0d4863bcf9 100644 --- a/ansible/roles/prometheus/templates/prometheus-mysqld-exporter.json.j2 +++ b/ansible/roles/prometheus/templates/prometheus-mysqld-exporter.json.j2 @@ -1,5 +1,5 @@ { - "command": "/opt/mysqld_exporter/mysqld_exporter -config.my-cnf /etc/prometheus/my.cnf -web.listen-address {{ api_interface_address }}:{{ prometheus_mysqld_exporter_port }}", + "command": "/opt/mysqld_exporter/mysqld_exporter --config.my-cnf /etc/prometheus/my.cnf --web.listen-address {{ api_interface_address }}:{{ prometheus_mysqld_exporter_port }}", "config_files": [ { "source": "{{ container_config_directory }}/my.cnf", diff --git a/ansible/roles/prometheus/templates/prometheus-node-exporter.json.j2 b/ansible/roles/prometheus/templates/prometheus-node-exporter.json.j2 index 8b44c49689..22758ad986 100644 --- a/ansible/roles/prometheus/templates/prometheus-node-exporter.json.j2 +++ b/ansible/roles/prometheus/templates/prometheus-node-exporter.json.j2 @@ -1,5 +1,5 @@ { - "command": "/opt/node_exporter/node_exporter -collector.procfs /host/proc -collector.sysfs /host/sys -web.listen-address {{ api_interface_address }}:{{ prometheus_node_exporter_port }}", + "command": "/opt/node_exporter/node_exporter --path.procfs /host/proc --path.sysfs /host/sys --web.listen-address {{ api_interface_address }}:{{ prometheus_node_exporter_port }}", "config_files": [], "permissions": [ {