Skip to content

Commit 29c0f97

Browse files
authored
Merge pull request #536 from stackhpc/feature/ceph-mgr-exporter
Feature/ceph mgr exporter
2 parents f194d15 + 5d4396f commit 29c0f97

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,12 @@ If you want to add an alerting rule, there are many good examples of alerts are
127127
available `here <https://awesome-prometheus-alerts.grep.to/>`__. They simply
128128
need to be added to one of the ``*.rules`` files in the prometheus configuration
129129
directory.
130+
131+
Ceph Monitoring
132+
===============
133+
134+
There is code in the globals.yml file to extract the ceph mgr nodes from the
135+
mgrs group and list them as the endpoints for prometheus. Additionally,
136+
depending on your configuration, you may need set the
137+
``kolla_enable_prometheus_ceph_mgr_exporter`` variable to ``true`` in order to
138+
enable the ceph mgr exporter.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
features:
3+
- |
4+
Adds code to the globals.yml file to add endpoints for the
5+
ceph_mgr_exporter. If ceph is configured correctly, managers will be
6+
under the mgrs inventory group. If this group is empty, then the
7+
variable will just be empty (the KA default). This also requires
8+
setting ``kolla_enable_prometheus_ceph_mgr_exporter`` to ``true``.

0 commit comments

Comments
 (0)