diff --git a/group_vars/all/plain.yml b/group_vars/all/plain.yml index eff7254..c9d2e2f 100644 --- a/group_vars/all/plain.yml +++ b/group_vars/all/plain.yml @@ -97,6 +97,7 @@ monitor_port_system: "9082" monitor_port_docker: "9083" monitor_port_elastic: "9084" monitor_port_harbor: "9085" +monitor_port_awx: "80" admin_port_traefik: "9080" diff --git a/templates/prometheus/config/prometheus/prometheus.yml.j2 b/templates/prometheus/config/prometheus/prometheus.yml.j2 index d980df9..3b81712 100644 --- a/templates/prometheus/config/prometheus/prometheus.yml.j2 +++ b/templates/prometheus/config/prometheus/prometheus.yml.j2 @@ -140,7 +140,7 @@ scrape_configs: static_configs: - targets: [ {% for host in server_group_names_awx | default([]) %} - '{{ host }}.{{ domain }}', + '{{ host }}.{{ domain }}:{{ monitor_port_awx }}', {% endfor %} ] labels: