Skip to main content

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.

Basic information
  • Estimated time required: 20 minutes
  • User environment
    • 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.

FieldValue
Email or usernameadmin
passwordadmin
info

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.

  1. Access Connections > Data sources from Grafana's left menu.

  2. Click the [Add data source] button to create a new data source.

    Click Add data source Add data source

  3. Select the Prometheus data source type.

  4. Enter a name for the data source.

    • Example: Name the data source receiving BCS metric information as BCS.
  5. In the Connection section, enter the Metric Export endpoint in the Prometheus server URL.

    Enter Metric Export endpoint Enter Metric Export endpoint

    FieldValue
    Prometheus server URLhttps://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.
  6. In the Authentication > HTTP headers section, click the [Add header] button and enter the following information.

    Enter HTTP headers Enter HTTP headers

    FieldValue
    Credential-IDAccess key ID
    Credential-SecretSecret access key
    service-typeEnter 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
  7. Click the [Save & test] button to save the configuration.

    A green message Successfully queried the Prometheus API will confirm that the setup is correct.

  8. 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 Add new data source

    Prepared data sources Prepared data sources

Step 2. Create dashboard using template

  1. Select the Dashboards menu on the left, and click Import from the [New] button.

    Dashboard Import Dashboard Import

  2. 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 Upload dashboard JSON file

    TemplateIDURL
    BCS Dashboard21123https://grafana.com/grafana/dashboards/21123
    Load Balancing Dashboard21124https://grafana.com/grafana/dashboards/21124
    MySQL Dashboard21125https://grafana.com/grafana/dashboards/21125
    Redis Dashboard21126https://grafana.com/grafana/dashboards/21126

    In this step, we will select the BCS Dashboard template.

  3. Set the corresponding data source for the dashboard template as server-datasource.

    Select data source Select data source

  4. Click [Import] to create the dashboard.

  5. View metric information for the resources currently in use.
    You can also view dashboards for Load Balancing, MySQL, and Redis using the tabs below.

    Check BCS Dashboard Check BCS Dashboard

info

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.