Get started with NebulaGraph Cloud¶
This guide covers how to quickly get started with NebulaGraph Cloud.
Prerequisites¶
A database instance is created. For more information, see Create a database instance.
Step 1. Create graphs¶
Before you import data, you must create a graph to store the data to be imported. In NebulaGraph Cloud, graphs are created based on graph types, which define the data structure of the graphs. To ensure that your data is imported correctly, the graph type must match the data structure of the source data.
We have provided a demo dataset for you to quickly try out NebulaGraph Cloud. The demo dataset contains a graph type and a graph, which are created based on the demo data. If you want to use it, skip this step and jump to step 2. If you want to create your own graph type and graph, follow the steps below.
- Click the name of the database that you created to view the database details.
- On the left-side navigation pane of the database details page, click Graph under Data.
- (Optional) In the Graph page, click Create Schema from the drop-down list and follow the instructions introduced in Create schemas to create a schema.
- In the upper-left corner of the Graph page, follow the instructions introduced in Create a graph type and Create a graph to create a graph type and a graph.
Step 2. Import data¶
- On the Database page, click the name of the database that you created to view the database details.
- On the left-side navigation pane of the database details page, click Graph under Data.
-
You can import demo data or your custom data into the database. Follow either of the following methods based on your requirements.
-
Use the demo dataset
On the Graph page, click Use Demo Dataset to load the demo dataset in NebulaGraph Cloud. For more information, see Demo dataset.
-
Import custom data
-
Go to the database details page, and click Import on the left-side navigation pane.
-
On the Import page, click Import Data and follow the instructions introduced in Create import task to import your data.
-
-
Step 3. Run queries and explore data¶
On the Database page, click the name of the database that you created to view the database details. On the left-side navigation pane of the database details page, you can:
- Click Explore to explore data on canvas. For detailed instructions, see Explore graph.
-
Click Query to perform GQL queries in the console. For how to write GQL queries, see GQL guide. For how to navigate around the console, see Data query.
Note
To log in to the GQL documentation center, enter the name of your NebulaGraph Cloud account and the initial password
Nebula.123
. You will be prompted to change the initial password when you log in for the first time.
Step 4. Monitor database information and metrics¶
On the Database page, click the name of the database that you created to view the database details.
-
To view the basic information and core metrics of the database, click Overview under Basic on the left-side navigation pane.
- On the Basic pane, you can view the basic information about the database, such as the cloud provider, status, and capacity.
- On the Core Metrics pane, you can select the time range, start time, and end time to view the core database metrics.
-
To view all the database metrics, click Metrics under Monitoring on the left-side navigation pane. Then, select the time range, start time, end time, and fresh rate to view the metrics, including:
- Query per second (QPS): The number of queries executed per second
- Query latency (P95): The 95th percentile latency of queries
- CPU utilization: The percentage of CPU used by the database
- Memory utilization: The percentage of memory used by the database
- Storage used: The amount of storage used by the database
- Total sessions: The total number of sessions within a specified period