Skip to content

Feature/ceph mgr exporter #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions doc/source/configuration/monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,12 @@ If you want to add an alerting rule, there are many good examples of alerts are
available `here <https://awesome-prometheus-alerts.grep.to/>`__. They simply
need to be added to one of the ``*.rules`` files in the prometheus configuration
directory.

Ceph Monitoring
===============

There is code in the globals.yml file to extract the ceph mgr nodes from the
mgrs group and list them as the endpoints for prometheus. Additionally,
depending on your configuration, you may need set the
``kolla_enable_prometheus_ceph_mgr_exporter`` variable to ``true`` in order to
enable the ceph mgr exporter.
7 changes: 7 additions & 0 deletions etc/kayobe/kolla/globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ prometheus_node_exporter_extra_volumes:
- "textfile:/var/lib/node_exporter/textfile_collector"
prometheus_node_exporter_cmdline_extras: "--collector.textfile.directory=/var/lib/node_exporter/textfile_collector"

# Set Ceph manager exporter endpoints
{% if groups['mgrs'] | length > 0 %}
prometheus_ceph_mgr_exporter_endpoints:
{% for host in groups['mgrs'] %}
- "{{ admin_oc_net_name | net_ip(host) }}:9283"
{% endfor %}
{% endif %}

#############################################################################

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
features:
- |
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 just be empty (the KA default). This also requires
setting ``kolla_enable_prometheus_ceph_mgr_exporter`` to ``true``.