Skip to main content

Utilize Grafana dashboard templates in KakaoCloud

This guide explains how to easily configure monitoring dashboards using Grafana dashboard templates provided by KakaoCloud. KakaoCloud offers four Grafana templates for Beyond Compute Service, Load Balancing, MySQL, and MemStore services.

info
  • Estimated time: 20 minutes
  • User environment
    • Region: kr-central-2
  • Prerequisites

Before you start

Grafana installation is required to proceed with this tutorial. You can either build it manually or use a Docker image. For detailed installation instructions, refer to the official Grafana guide.
This scenario is based on Grafana v10.4.2.

Use the following initial login credentials to access Grafana:

KeyValue
Email or usernameadmin
Passwordadmin
info

When logging into Grafana for the first time, you must change the default password for security reasons.

Getting started

Step 1. Create Prometheus data source

To use KakaoCloud's Grafana dashboard templates, create the necessary data sources. Four data sources must be configured to collect metrics for each service type.

  1. In Grafana, navigate to Connections > Data sources from the left menu.

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

    Add data source
    Add data source

  3. Select Prometheus as the data source type.

  4. Enter a name for the data source.
    Example: Name the data source for BCS metrics as BCS.

  5. In the Prometheus server URL field, enter the Metric Export endpoint.

    Enter Metric Export endpoint
    Enter Metric Export endpoint

    KeyValue
    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 guide for details.
  6. Under Authentication > HTTP headers, click [Add header] and enter the following details:

    Enter HTTP headers
    Enter HTTP headers

    KeyValue
    Credential-IDAccess key ID
    Credential-SecretSecret access key
    service-typeSpecify the service type: server (VM, GPU, Bare Metal), lb (Load Balancing), mysql (MySQL), redis (Redis)
  7. Click [Save & test]. If you see the message "Successfully queried the Prometheus API", the configuration is complete.

  8. Repeat the steps above to create data sources for Load Balancing, MySQL, and Redis services.

    Prepared data sources
    Prepared data sources


Step 2. Create dashboard using template

  1. In Grafana, navigate to Dashboards > New > Import.

    Dashboard Import
    Dashboard Import

  2. Copy the ID or URL of the desired dashboard template from the table below and paste it into the input field. 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

Select the BCS Dashboard template for this step.

  1. Select the appropriate Data Source (server-datasource) for the dashboard template.

    Select data source
    Select data source

  2. Click [Import] to create the dashboard.

  3. Verify the metrics displayed on the dashboard. Use the tabs below to switch between different dashboards.

    BCS Dashboard
    BCS Dashboard

info

KakaoCloud's Grafana dashboard templates can be easily customized to suit user preferences.
For more details, refer to the Metric Export guide.