File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
roles/prometheus/templates Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,7 @@ prometheus_node_exporter_port: "9100"
433
433
prometheus_mysqld_exporter_port : " 9104"
434
434
prometheus_haproxy_exporter_port : " 9101"
435
435
prometheus_memcached_exporter_port : " 9150"
436
+ prometheus_rabbitmq_exporter_port : " 15692"
436
437
# Default cadvisor port of 8080 already in use
437
438
prometheus_cadvisor_port : " 18080"
438
439
@@ -1092,6 +1093,7 @@ enable_prometheus_ceph_mgr_exporter: "no"
1092
1093
enable_prometheus_openstack_exporter : " {{ enable_prometheus | bool }}"
1093
1094
enable_prometheus_elasticsearch_exporter : " {{ enable_prometheus | bool and enable_elasticsearch | bool }}"
1094
1095
enable_prometheus_blackbox_exporter : " {{ enable_prometheus | bool }}"
1096
+ enable_prometheus_rabbitmq_exporter : " {{ enable_prometheus | bool and enable_rabbitmq | bool }}"
1095
1097
1096
1098
prometheus_alertmanager_user : " admin"
1097
1099
prometheus_openstack_exporter_interval : " 60s"
Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ scrape_configs:
47
47
{% endfor %}
48
48
{% endif %}
49
49
50
+ {% if enable_prometheus_rabbitmq_exporter | bool %}
51
+ - job_name: rabbitmq
52
+ static_configs:
53
+ - targets:
54
+ {% for host in groups ['rabbitmq' ] %}
55
+ - '{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host] ['prometheus_rabbitmq_exporter_port'] }}'
56
+ {% endfor %}
57
+ {% endif %}
58
+
50
59
{% if enable_prometheus_memcached_exporter | bool %}
51
60
- job_name: memcached
52
61
static_configs:
Original file line number Diff line number Diff line change
1
+ ---
2
+ features :
3
+ - |
4
+ Adds support for collecting Prometheus metrics from RabbitMQ. This is
5
+ enabled by default when Prometheus and RabbitMQ are enabled, and may be
6
+ disabled by setting ``enable_prometheus_rabbitmq_exporter`` to ``false``.
You can’t perform that action at this time.
0 commit comments