Using KakaoCloud's Grafana dashboard templates
This guide explains how to easily configure a monitoring dashboard using Grafana dashboard templates from KakaoCloud. KakaoCloud provides four Grafana templates for Beyond Compute Service, Load Balancing, MySQL, MemStore services.
- Estimated time required: 20 minutes
- User environment
- Region: kr-central-2
- Region: kr-central-2
- Prerequisites
Before you start
You need to install Grafana to proceed with this tutorial. You can either build it directly or use a Docker image. Refer to the official Grafana guide for installation details.
Log into Grafana using the initial credentials below.
Field | Value |
---|---|
Email or username | admin |
password | admin |
Upon your first login to Grafana, you will be prompted to change the initial password for security reasons.
Step 1. Create Prometheus data source
Create the necessary data sources to use KakaoCloud's Grafana dashboard templates. Four data sources will be created to collect metric information for each service type.
-
Access Connections > Data sources from Grafana's left menu.
-
Click the [Add data source] button to create a new data source.
Add data source
-
Select the Prometheus data source type.
-
Enter a name for the data source.
- Example: Name the data source receiving BCS metric information as
BCS
.
- Example: Name the data source receiving BCS metric information as
-
In the Connection section, enter the Metric Export endpoint in the Prometheus server URL.
Enter Metric Export endpoint
Field Value Prometheus server URL https://monitoring.kr-central-2.kakaocloud.com/metric-export/grafana/{project_id}/prometheus
- Replace
{project_id}
with your project ID. Refer to the Check project ID page for more details.
- Replace
-
In the Authentication > HTTP headers section, click the [Add header] button and enter the following information.
Enter HTTP headers
Field Value Credential-ID Access key ID Credential-Secret Secret access key service-type Enter the service type for this data source (one service type per data source)
-server
: Virtual Machine, GPU, Bare Metal Server
-lb
: Load Balancing
-mysql
: MySQL
-redis
: Redis -
Click the [Save & test] button to save the configuration.
A green message Successfully queried the Prometheus API will confirm that the setup is correct.
-
Return to the Data sources menu on the left and click [Add new data source] to create data sources for Load Balancing, MySQL, and Redis metric information.
Add new data source
Prepared data sources
Step 2. Create dashboard using template
-
Select the Dashboards menu on the left, and click Import from the [New] button.
Dashboard Import
-
Copy the ID or URL of the desired dashboard from the table below, paste it into the input field, and click [Load].
Upload dashboard JSON file
Template ID URL BCS Dashboard 21123 https://grafana.com/grafana/dashboards/21123 Load Balancing Dashboard 21124 https://grafana.com/grafana/dashboards/21124 MySQL Dashboard 21125 https://grafana.com/grafana/dashboards/21125 Redis Dashboard 21126 https://grafana.com/grafana/dashboards/21126 In this step, we will select the BCS Dashboard template.
-
Set the corresponding data source for the dashboard template as server-datasource.
Select data source
-
Click [Import] to create the dashboard.
-
View metric information for the resources currently in use.
You can also view dashboards for Load Balancing, MySQL, and Redis using the tabs below.- BCS
- Load Balancing
- MySQL
- Redis
Check BCS Dashboard
Check Load Balancing Dashboard
Check MySQL Dashboard
Check Redis Dashboard
KakaoCloud's Grafana dashboard templates can be easily customized to suit your preferences.
For more details, refer to the Using Metric Export page of KakaoCloud's Monitoring service guide.