DEV Community

Cover image for Quick tip: Using the new built-in monitoring and metrics tools in SingleStoreDB Cloud
Akmal Chaudhri for SingleStore

Posted on • Updated on

Quick tip: Using the new built-in monitoring and metrics tools in SingleStoreDB Cloud

Abstract

Monitoring and metrics are important for understanding the performance and behaviour of database workloads. SingleStoreDB Cloud now provides both real-time and historical metrics. In this short article, we'll see how to access these new features.

Introduction

In a previous article, we saw how to use monitoring for standalone or containerised installations of SingleStoreDB. However, SingleStoreDB Cloud now also supports monitoring and metrics. In this article, we'll see how to access these built-in features.

Create a SingleStoreDB Cloud account

A previous article showed the steps required to create a free SingleStoreDB Cloud account. We'll use Monitoring Demo Group as our Workspace Group Name and monitoring-demo as our Workspace Name. At the time of creating a Workspace, we have the option to attach the MarTech Database and should check this option as shown in Figure 1. This will serve as a great example to demonstrate monitoring and metrics.

Figure 1. MarTech Application.

Figure 1. MarTech Application.

Real-time Monitoring

After the Workspace has been successfully created, if we select Workspaces from the top navigation bar, we can see all our Workspaces along with real-time metrics for CPU, Memory and Cache, as shown in Figure 2.

Figure 2. Real-time Metrics.

Figure 2. Real-time Metrics.

These three metrics are often the first indicators of poor performance. Now they can be quickly checked. Hovering over the CPU bar shows both the Average and the Maximum. Hovering over the Memory bar shows Used, Reserved and Available.

Historical Metrics

If we now select MONITORING > Historical Monitoring from the left navigation bar, we will be presented with various options, as shown in Figure 3.

Figure 3. Historical Monitoring.

Figure 3. Historical Monitoring.

Let's select Open Utilization Monitoring.

A new tab/browser window will open and we will be presented with a set of Grafana charts and graphs similar to Figure 4.

Figure 4. Resource Utilization.

Figure 4. Resource Utilization.

From Figure 4, we can see a wide range of charts.

Hovering over the individual charts will give us more detailed information and we can also choose the historical range and refresh rate from the top right.

These historical metrics complement the real-time metrics and can be used to observe system behaviour during demand surges, for example.

Database Explorer Resource Utilisation Metrics

Finally, if we select Databases from the top navigation bar, we will see all our databases, as shown in Figure 5.

Figure 5. Database Explorer.

Figure 5. Database Explorer.

In this example, we can see the MarTech database. If we select this database by clicking on the name, we will see a more detailed breakdown, as shown in Figure 6.

Figure 6. Database Detail.

Figure 6. Database Detail.

Four new columns have been added to the metrics:

  1. Memory Usage
  2. Index Disk Usage
  3. Data Disk Usage
  4. Compression Ratio

These will considerably aid customers without the need to write custom code.

Summary

The additional monitoring and metrics now available in SingleStoreDB Cloud will aid administrators and developers in better understanding the performance of database workloads, and identifying performance problems or bottlenecks much faster. For additional details please check the article Winter 2022 Release: Announcing Real-Time and Historical Monitoring in SingleStoreDB Cloud.

Top comments (0)