Skip to content

Commit

Permalink
Use rabbitmq_default_mgt_console_port in prometheus role (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvelarde-itential authored Oct 23, 2024
1 parent 440d92b commit 04a09cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion roles/prometheus/templates/scrape_configs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

{%- if 'rabbitmq' in groups -%}
{% for host in groups['rabbitmq'] %}
{% set rabbitmq_exporter_web_listen_address = host + ":" + prometheus_rabbitmq_exporter_web_listen_port | string %}
{% set rabbitmq_exporter_web_listen_address = host + ":" + rabbitmq_default_mgt_console_port | string %}
{{- rabbitmq_exporter_targets.append( rabbitmq_exporter_web_listen_address ) -}}
{% if 'node_exporter_web_listen_address' in hostvars[host] %}
{% set node_exporter_web_listen_address = hostvars[host].node_exporter_web_listen_address %}
Expand Down
1 change: 0 additions & 1 deletion roles/prometheus/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ prometheus_process_exporter_web_listen_port: 9256
prometheus_node_exporter_web_listen_port: 9100
prometheus_redis_exporter_web_listen_port: 9121
prometheus_mongodb_exporter_web_listen_port: 9216
prometheus_rabbitmq_exporter_web_listen_port: 15692

0 comments on commit 04a09cb

Please sign in to comment.