Topics covered in this article:
In order to have systems in the desired state, it is important to continuously monitor them. Kubera Director provides different monitoring views at different levels, making monitoring easier and more effective.
Kubera Director helps to monitor all the information related to storage pool, volumes and Stateful applications.
With Director, volume monitoring can be done various means such as Multi-Cloud, Granular,Cross-cloud etc.
Multi-cloud dashboard displays live statistics of volumes present in the cluster. It represents the aggregate cluster usage, total capacity, IOPS and throughput of all volumes in the cluster in a graphical manner, making it easier to interpret the data. It also represents the abstract information of clusters connected, Project Teams that the user is part of and information about the integrated slack card.


Select a cluster and then click on Monitor, present on the left sidebar, this displays the granular details of OpenEBS volumes such as Storage Capacity, Total capacity of all volumes, IOPS of all volumes, Throughput of all volumes.

The granular details of a particular OpenEBS volume can be viewed by clicking the Volume Analytics icon displayed parallel (towards the end)to volume details, it redirects you to the dashboard(as shown in the image below) where more details of the OpenEBS volume can be obtained.


The granular details of a particular OpenEBS volume can be viewed by clicking the Volume Analytics icon displayed parallel (towards the end)to volume details, it redirects you to the dashboard(as shown in the image below) where more details of the OpenEBS volume can be obtained.

Monitoring of all OpenEBS volumes present in the cluster can be done from Cross-Cloud Monitoring. The main advantage of this dashboard is that it shows the granular details such as IOPS, throughput, Block Size for both Read and Write operations, Latency for both Read and Write operations and Storage Usage of an OpenEBS volume. You can also generate graphs for specific cluster and OpenEBS PVC(s) by selecting the desired cluster and PVC name.

The range for displaying the monitoring metrics can also be customized using the range button. The default value configured is for last 1 hour period with 1 minute refresh interval.

This dashboard can be shared and saved using the share and Save buttons present int the top right corner(encircled in the image below).


The range for displaying the monitoring metrics can also be customized using the range button. The default value configured is for last 1 hour period with 1 minute refresh interval.

This dashboard can be shared and saved using the share and Save buttons present int the top right corner(encircled in the image below).

The Storage pool dashboard can be accessed from inside the cluster. Select Storage Pools under Managment section displayed on the left sidebar. This page gives an overview of the existing pools, their statuses, nodes on which they are deployed, CAS used and capacity.
Dashboards for the storage pool(s) can be accessed by clicking on the pool name. This dashboard provides granular details such as total and available capacity, analytics and topology of the corresponding storage pool. Pool analytics will hellplful to track the usage of StoragePool pods and its functionality. To get detailed information about analytics, topology and logs chick on the buttons, as shown in the image given below.



Currently, Kubera Director supports monitoring of 6 applications: CockroachDB, Elasticsearch, MinIO, MySQL, PostgreSQL, and Redis. Few applications such as MinIO and CoackroachDB expose metrics by default whereas for others (MYSQL, PostgreSQL, Redis, Elasticsearch) we need an external exporter to expose metrics.
Steps to monitor MinIO and CockroachDB:
First, connect your cluster to Kubera Director. You can do this by following the steps described here. After connecting your cluster to Kubera Director, select the cluster and go to the
All your applications will be listed here.
Likewise, you can enable monitoring for other applications:
Elasticsearch:

Redis:

PostgreSQL:

One more fantastic feature that Kubera Director provides is the ability to generate and download a Report of your dashboards. Click on the Report button located in the top right panel of the dashboard, and you should get your graphs in PDF format.
Steps to monitor MinIO and CockroachDB:
Note: Make sure the pod has all the labels that are present in the application (deployment/Statefulset)
First, connect your cluster to Kubera Director. You can do this by following the steps described here. After connecting your cluster to Kubera Director, select the cluster and go to the
Applications
page. 
All your applications will be listed here.
- Click on the desired application. In this example, we will enable monitoring for CockroachDB.
- Now go to Analytics and select "Enable Analytics"
- Wait for a while (it may take up to 5 minutes), and you will see a small dashboard in front of you. To view additional graphs, click on "View More" in the bottom right corner of the panel.
Similarly, you can enable metrics for the MinIO application. While enabling metrics you need to provide a bearer-token for prometheus. Click here to know the steps to generate this token.
- Click on MySQL from the application list.
- Go to Analytics and select "Enable Analytics," then enter the required details like username, password, etc., in the form, and click on "Submit".
- Wait for a period of time (it may take up to 5 minutes) and you will see a small dashboard in front of you. Again, you can view additional graphs by clicking on the "View More" button located in the bottom right corner of the panel.
- If you entered the wrong details of the application in the form, you could edit your entries back from the Analytics tab on the top right corner of the panel. It may also take up to 5 minutes for the changes to be reflected.
If you don't want the metrics anymore, you can delete the analytics as well.
Likewise, you can enable monitoring for other applications:
Elasticsearch:

Note: For Elasticsearch applications, you need to input data in the username and password field if the application does not have any authentication.
Redis:

Note: For Redis applications, you can leave the password field empty if the application does not require any password.
PostgreSQL:

One more fantastic feature that Kubera Director provides is the ability to generate and download a Report of your dashboards. Click on the Report button located in the top right panel of the dashboard, and you should get your graphs in PDF format.
