Monitoring your applications using OpenEBS Director Online

OpenEBS Director Online is a SaaS platform that helps DevOps in handling their Kubernetes clusters using features such as centralized monitoring, logging, ChatOps, and MayaData support. Users can sign up to Director Online using their GitHub or Google credentials or directly with an email address. It is free for basic usage.

blog_1

Monitoring different metrics of your application helps you understand overall performance, behaviors during high usage, CPU usage, latency, and storage availability and usage. You can keep these records with you to determine the difference in the performance of your application, either within the same environment or a different one. For monitoring, Director Online uses Grafana for time-series analytics.

In this blog, I want to show you how to obtain metrics for your applications in OpenEBS Director Online so that you can monitor performance using Grafana Dashboards.

Currently, 6 applications can be monitored easily using Director Online. They are CockroachDB, Elasticsearch, Minio, MySQL, PostgreSQL, and Redis. Let's look at how to monitor these applications:

For applications like Minio and CockroachDB:

Some applications expose metrics by default and do not require an external exporter. These two are of the same kind. So, let's look at the steps for monitoring for these applications:

(Note: Make sure the pod has all the labels that are present in the application (deployment/Statefulset))

First, connect your cluster to DirectorOnline. You can do this by following the steps described here.

After connecting your cluster to DO, you should find yourself at the "Overview" page.

blog_2


Here, all your applications will be listed.

1. Click on your desired application.

In this example, we will enable monitoring for CockroachDB.

1_1


2. Now go to Analytics and select "Enable Analytics."

1_2


3. 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.

1_3


If you don't want to see the metrics anymore, you can delete the analytics as well. The steps are shown at the end of this post.

Similarly, you can enable metrics for the Minio application. This can be done as shown:

1_4

. . . 

For applications like Elasticsearch, MySQL, PostgreSQL, and Redis:

Some applications require an external exporter to expose metrics. Director Online currently supports 4 such applications. They are - Elasticsearch, MySQL, PostgreSQL, and Redis. Let's now show how to enable metrics for these applications. We will use MySQL for this example.

1. Click on MySQL from the application list.

2_1


2. Go to Analytics and select "Enable Analytics," then enter the required details like username, password, etc., in the form, and click on "Submit".

2_2


3. 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.

2_3


4. 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.

2_4


If you don't want the metrics anymore, you can delete the analytics as well.

2_5

. . . 

Likewise, you can enable monitoring for other applications:

Elasticsearch:

3_1


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

. . . 

Redis:

4_1


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

. . . 

PostgreSQL:

5_1

. . . 

One more fantastic feature that Director Online 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.

6_1

. . . 

Well, that's all for now, folks. Feel free to ask anything or submit your thoughts in the comments section.

Director Online also has the on-premise setup, called Director OnPrem. To learn more about Director Online and Director OnPrem, refer to the official documentation here.

Happy hacking!

Murat Karslioglu
VP @OpenEBS & @MayaData_Inc. Murat Karslioglu is a serial entrepreneur, technologist, and startup advisor with over 15 years of experience in storage, distributed systems, and enterprise hardware development. Prior to joining MayaData, Murat worked at Hewlett Packard Enterprise / 3PAR Storage in various advanced development projects including storage file stack performance optimization and the storage management stack for HPE’s Hyper-converged solution. Before joining HPE, Murat led virtualization and OpenStack integration projects within the Nexenta CTO Office. Murat holds a Bachelor’s Degree in Industrial Engineering from the Sakarya University, Turkey, as well as a number of IT certifications. When he is not in his lab, he loves to travel, advise startups, and spend time with his family. Lives to innovate! Opinions my own!
Jeffry Molanus
Jeffry prior to being CTO at MayaData has worked at several other startups in the storage industry. He worked on several scale-out object storage products as well as traditional NAS and SAN storage solutions where he held technical leadership roles. At MayaData, his primary focus is to make sure the product is flexible and scalable. At the same time, robust enough to be integrated seamlessly into modern-day infrastructure where he believes, containers will have a dominant role. Jeffry holds a master's degree in electrical engineering with a focus on distributed control engineering from the University of Twente in the Netherlands. When he is not working with code, he practices martial arts.
Evan Powell
Founding CEO of a few companies including StackStorm (BRCD) and Nexenta — and CEO & Chairman of OpenEBS/MayaData. ML and DevOps and Python, oh my!