How to use one Dashboard to see your cluster heath
Tags: opensource, devops, database
Published: 2022-03-01 07:23:28


![Introducing Nebula Dashboard: The brain of your Nebula Graph cluster](https://user-images.githubusercontent.com/90186547/155935795-eaf86ef4-be5e-4e95-a81d-93298ab2526c.jpg)

Distributed database systems like Nebula Graph perform well in storing data but they make DevOps difficult and complicated. Building and managing clusters is pain and time-consuming. Not to mention it is not easy to back up and upgrade the system, especially in the production environment.

Introducing [Nebula Dashboard](https://nebula-graph.io/products/dashboard/), a visualization tool that helps you manage your Nebula Graph clusters in an intuitive web user interface. Nebula Dashboard can help DevOps engineers and database administrators (DBAs) reduce the daily cost of managing a Nebula Graph cluster and ensure the stability of their systems.

If you want a free trial of Nebula Dashboard enterprise edition, click here: https://dashboard.nebula-graph.io/

## The structure
The following figure gives the six main features of Nebula Dashboard. They are cluster management, monitoring, alarming, single cluster configuration, access control, and system setting. 

![Nebula Dashboard Structure](https://user-images.githubusercontent.com/90186547/155936570-00156e85-fc82-4792-b638-d5cc7fc98287.png)

## The one dashboard to rule them all

First, let's dive into the main features of Nebula Dashboard: multi-cluster orchestration & lifecycle management, monitoring and alerting, and access control.

### Multi-cluster orchestration & lifecycle management

The lifecycle for a Nebula Graph cluster refers to the journey from the creation of a cluster to management to eventual recycling.

![Nebula Dashboard rules all](https://user-images.githubusercontent.com/90186547/155936823-5cf11b30-f9d3-49d4-a793-f84e14e7451b.png)

Nebula Dashboard can manage the full lifecycle of your Nebula Graph cluster in a visualized way. 

When you have not created a Nebula Graph cluster, Nebula Dashboard enables you to start the creation of a new cluster. If you are already working with Nebula Graph clusters, you can import those clusters into Nebula Dashboard in batch and monitor or manage them there. We will go through the entire process of creating and managing clusters in this chapter.

**Create a cluster from Nebula Dashboard**

![Create a cluster from Nebula Dashboard](https://user-images.githubusercontent.com/90186547/155937028-dbd2ac45-7784-4fa4-b3f8-47774cb89579.png)

There are five steps to create a cluster, as shown in the figure above:

1. Input a unique cluster name

2. Choose the Nebula Graph version that you want to create a cluster. Please note that Nebula Dashboard only supports Nebula Graph v2.0 and above. By default, Nebula Dashboard provides three built-in installation package: v2.6.1, v2.5.1, and v2.0.1. It will also support Nebula Graph v3.0.0 once it is released in mid February 2022.

3. Add nodes to the cluster. You may need to authorize the step from SSH.

4. Select the services to be deployed on different nodes. For simplicity, you can also use the "Auto Add Service” feature to evenly deploy services to different nodes.

5. Confirm everything is OK and click “Create Cluster.” And voilà, you have your Nebula Graph cluster up and running.

**Importing a cluster into Nebula Dashboard**

If you have a Nebula Graph cluster running, you can import it into Nebula Dashboard to manage it in a graphic user interface.

![Importing a cluster into Nebula Dashboard](https://user-images.githubusercontent.com/90186547/155937402-c6c78c8e-6f70-4422-8d6b-dc6616042d27.png)

![Importing a cluster into Nebula Dashboard](https://user-images.githubusercontent.com/90186547/155937479-b1b765e4-ea2a-459a-8053-968f7f2042ed.png)

### Cluster operations and maintenance
Once you have completed the above two steps, you can use Nebula Dashboard to manage your clusters. Cluster management can be tedious. It involves repeated actions such as management of clusters, nodes and services. Nebula Dashboard can free DevOps engineers from this unbearable boredom by simplifying the whole process of cluster management. 

Here are what you can do with Nebula Dashboard to manage your cluster:

**Node and service management**
Nebula Dashboard’s Node management and Service management modules will give you an intuitive overview of all the information about running nodes in the cluster and services in each node.  You can do actions such as adding empty nodes and starting or stopping services in a node.

![Node and service management](https://user-images.githubusercontent.com/90186547/155937599-0fdca548-7df2-46ed-9c87-c8b3be473a3a.png)

![Node and service management](https://user-images.githubusercontent.com/90186547/155938301-68a54552-1dc0-4160-aa03-9756d63c3994.png)

**Be informed. Be alerted.**

Monitoring the health of a cluster is the first priority forNebula Dashboard. Nebula Dashboard provides cluster overview, node metrics monitoring, service metrics monitoring, and alarm notification capabilities to help DevOps engineers stay informed of their Nebula Graph cluster health.

**Cluster overview**

In the overview section, DevOps engineers can quickly understand the overall situation of the current cluster, including the distribution of services in the node, operational status, and customize indicators of their most concerned metrics to stay alarmed.  

![Cluster overview](https://user-images.githubusercontent.com/90186547/155938434-91ac15f9-8652-4020-9cc8-15f1005e2057.png)

**Node monitoring**

Node monitoring is used to present all the information of a particular Nebula Graph node, including its CPU usage, memory, load, and disk. You can also set a baseline for a specific metric so that you can be alerted when the metric exceeds the baseline. 

![Node monitoring](https://user-images.githubusercontent.com/90186547/155938547-adb5798b-bd23-4f32-b989-d5f044b863d4.png)

**Service monitoring**

Service monitoring mainly involves the metrics of three services of Nebula Graph clusters. The three services are graphd, metad and storaged. Currently, Nebula Dashboard can present dozens of cluster metrics and monitor them based on their aggregations and averages. These metrics include the number of slow queries and errors in the graphd service, vertex  and edge latencies of storaged, and heartbeat latencies of the metad service. 

![Service monitoring](https://user-images.githubusercontent.com/90186547/155938646-d1e9741f-1fc8-43ee-9cc0-5bb0a3b06d65.png)

**Alert**

Nebula Dashboard's alert module is a service for alerting the monitoring indicators of Nebula Graph clusters. You can view alert information, set alert rules and alert recipients in the module. 

You can set up alert baselines of indicators that you care about, and the frequency and duration of the alert triggering, as well as the notification message template, so that the system will automatically send out notifications to alert you when any of the indicators triggers the corresponding rules.

You can view history alert messages, in-site alert messages, set up email and webhook notifications, and set alert rules in the alert module. Here is how the module works:

1. Create custom alert rules or activate alert rules.
2. An alert message will be sent when the system monitors any abnormal metric.
3. A pop-up in-site message of the alert is shown on the top right of Nebula Dashboard. The system will send out an alert email if you have set an email recipient.

4. You can then perform troubleshooting based on the alert message.  

![Alert](https://user-images.githubusercontent.com/90186547/155938848-384522e4-3b99-4d50-83ed-7d633143d118.png)

**Fine-grained access control**

As a multi-cluster management tool, Nebula Dashboard has enabled a fine-grained access control system to ensure security.  Nebula Dashboard has designed two roles, and they are admins and users. While admins are authorized to perform overall configuration of the Dashboard, users are only entitled to operate within the scope that is assigned to them.

**LDAP login**

Nebula Dashboard supports login with Lightweight Directory Access Protocol (LDAP). Once the LDAP information is provided in the deployment phase, users can log in with their enterprise account. Admins can invite users by sending them an email containing a verification link.

### Feature roadmap

Nebula Dashboard is designed to simplify the daily tasks of DevOps engineers and database administrators (DBAs). It will support the following features in the forthcoming versions.

Back up and upgrade a cluster with one click. This feature will only be compatible with Nebula Graph v3.0 and above.
Visualized management of Storage Zone
TV dashboard that allows you to display key metrics in a customized way in a display in your office 
Slow query management that allows DBAs to quickly identify slow queries.

## Wanna try?

Check out the Nebula Dashboard playground to see how Nebula Dashboard works in practice..  You can also click this link to request a 15-day free trial to test Nebula Dashboard enterprise edition out in your own environment.

If you encounter any problems in the process of using Nebula Graph, please refer to [Nebula Graph Database Manual](https://docs.nebula-graph.io/3.0.0/pdf/NebulaGraph-EN.pdf) to troubleshoot the problem. It records in detail the knowledge points and specific usage of the graph database and the graph database Nebula Graph.

Join our [Slack channel](https://join.slack.com/t/nebulagraph/shared_invite/zt-7ybejuqa-NCZBroh~PCh66d9kOQj45g) if you want to discuss with the rest of the Nebula Graph community!