Skip to content

Commit d31aa7f

Browse files
committed
Add endpoints for ceph_mgr_exporter
Adds code to the globals.yml file to add endpoints for the ceph_mgr_exporter. If ceph is configured correctly, managers will be under the mgrs inventory group. If this group is empty, then the variable will be the default; an empty list.
1 parent 9e6ffaa commit d31aa7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

etc/kayobe/kolla/globals.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ prometheus_node_exporter_extra_volumes:
7777
- "textfile:/var/lib/node_exporter/textfile_collector"
7878
prometheus_node_exporter_cmdline_extras: "--collector.textfile.directory=/var/lib/node_exporter/textfile_collector"
7979

80+
# Set Ceph manager exporter endpoints
81+
{% if groups['mgrs'] | length > 0 %}
82+
prometheus_ceph_mgr_exporter_endpoints:
83+
{% for host in groups['mgrs'] %}
84+
- "{{ admin_oc_net_name | net_ip(host) }}:9283"
85+
{% endfor %}
86+
{% endif %}
8087

8188
#############################################################################
8289

0 commit comments

Comments
 (0)