Skip to content

Commit

Permalink
Merge pull request #184 from UtkarshBhatthere/dashboard
Browse files Browse the repository at this point in the history
Added documentation for Ceph-Dashboard enablement and integration with Prometheus and Alertmanager
  • Loading branch information
UtkarshBhatthere authored Aug 24, 2023
2 parents c07ce73 + c10f214 commit 58cf3d8
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
Binary file added docs/tutorial/assets/dashboard.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tutorial/assets/dashboard_monitoring.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions docs/tutorial/enable_dashboard.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
Enable Ceph-Dashboard
=====================

Introduction
------------

Ceph-Dashboard is a built-in web based application for monitoring and management of your Ceph cluster. This makes it easy to administer Ceph clusters for users who prefer WebUI over CLI. It is implemented as a ceph-mgr module and thus is served by the active ceph-mgr daemon.

Enabling Ceph-Dashboard
-----------------------

Ceph-Dashboard can be enabled like any other ceph-mgr module using the ceph cli as:

.. code-block:: none
ceph mgr module enable dashboard
It can also generate a self signed certificate to quickly configure TLS.

.. code-block:: none
ceph dashboard create-self-signed-cert
For more details on SSL/TLS config visit `Ceph-Dashboard configuration <https://docs.ceph.com/en/quincy/mgr/dashboard/#configuration>`_.

Enabled ceph-mgr services can be queried as:

.. code-block:: none
ceph mgr services
{
"dashboard": "https://10.5.3.199:8443/",
"prometheus": "http://10.5.3.199:9283/"
}
Let's visit the service URL and see our dashboard.

.. figure:: assets/dashboard.jpeg

Ceph Dashboard WebUI

Configure SSL Key/Certicate pair
--------------------------------

Users may wish to configure their own set of SSL certificates for ceph-dashboard. This can be done simply using the ceph cli command:

.. code-block:: none
ceph dashboard set-ssl-certificate -i server.pem
SSL certificate updated
ceph dashboard set-ssl-certificate-key -i server.key
SSL certificate key updated
ceph mgr services
{
"dashboard": "https://10.5.1.107:8443/"
"prometheus": "http://10.5.1.107:9283/"
}
**Warning:** MicroCeph snap is a confined ceph application, therefore it does not have access to files at arbitrary locations on the host machine. Therefore, it is required to have the SSL certificate/key files at $HOMEDIR, since MicroCeph can read files located at the home directory.

Integration with Prometheus and Alertmanager
--------------------------------------------

Ceph-Dashboard can be configured as a receiver of the alerts coming from the Alertmanager instance. For this, we need to configure both Prometheus and Alertmanager host APIs in ceph dashboard as:

.. code-block:: none
ceph dashboard set-alertmanager-api-host <alertmanager-host:port>
ceph dashboard set-prometheus-api-host <prometheus-host:port>
for example:

.. code-block:: none
ceph dashboard set-alertmanager-api-host 'http://localhost:9093'
ceph dashboard set-prometheus-api-host 'http://localhost:9090'
Note:
If SSL/TLS is not configured for Prometheus or Alertmanager, ssl verification can be disabled using:

.. code-block:: none
ceph dashboard set-prometheus-api-ssl-verify False
ceph dashboard set-alertmanager-api-ssl-verify False
Let's check if the dashboard is receiving alerts!

.. figure:: assets/dashboard_monitoring.jpeg

We have an active ‘CephHealthWarning’ alert with a description which states that the cluster state has been in HEALTH_WARN for more than 15 minutes.

1 change: 1 addition & 0 deletions docs/tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ journey through the product.
install
initial_setup
add_osds
enable_dashboard
update

Follow the core tutorial steps in sequence; they take you on a learning journey through the product.
Expand Down

0 comments on commit 58cf3d8

Please sign in to comment.