Using Grafana

Prev Next

Available in VPC

Grafana is a data visualization system that lets you monitor applications through dashboards. Each user can use an individual Grafana instance and build a monitoring system by integrating it with the OpenTSDB app.

Note

For more information on Grafana, see Grafana Labs.

Check Grafana app details

Once the app is created, you can view its details. If the Status in the app details is Stable, the app is running normally.
To view app details:

  1. In the VPC environment on the NAVER Cloud Platform console, navigate to i_menu > Services > Big Data & Analytics > Data Forest.
  2. Click Data Forest > Apps on the left.
  3. Select the account that owns the app.
  4. Click the app to view its details.
  5. Review the app details.
    df-grafana_2-1_updated_ko
    • Quick links
      • Grafana Server: URL for accessing the Grafana server. The Grafana administration account is a user account. Log in with Data Forest's account and password.
      • shell: URL for accessing the web shell.
      • supervisor: Supervisor URL for managing Grafana.
    • Component: GRAFANA-7.5.10 type is composed of 1 server component.
      • server: The default values are the recommended resources.

Example:
The following shows the Grafana server login interface.
df-grafana_04_vpc_ko

The following shows the Grafana server access interface.
df-grafana_05_vpc_ko

The following shows the Supervisor link access interface.
df-grafana_06_vpc_ko

Add data sources

To use Grafana, you must add a Data Source.

This section describes based on how to add the running OpenTSDB app as a Data Source.

  1. Access the Grafana server.
  2. Click Configuration > Data Sources.
    df-grafana_07_vpc_ko
  3. Click [Add data source].
    • You can view various data sources supported by Grafana.
  4. Click [OpenTSDB].
    df-grafana_08_vpc_ko
  5. After checking the settings information, click [Save & Test].
    df-grafana_09_vpc_ko
    • HTTP / URL: The URL created after the test-01 user has run the OpenTSDB app with the name opentsdb is http://test-01.opentsdb.tsd.4242.proxy.kr.df.naverncp.com.
    • OpenTSDB settings / version: 2.3
  6. Check if it has been completed.
    • When Data source is working appears, it is successfully completed.

Database backup

Only when the database file changes does the database back up to HDFS every 10 seconds.
If you create an app with the name "grafana-1," the database is backed up as follows.

# Latest backup file (backed up every 10 seconds only when DB file changes)
hdfs://koya/user/test-01/grafana/grafana-1/grafana.db

# Versioned backup file (BACKUP_VERSIONING_INTERVAL=3600, 1 hour)
hdfs://koya/user/test-01/grafana/grafana-1/grafana.db.2021050320000
hdfs://koya/user/test-01/grafana/grafana-1/grafana.db.2021050330000
hdfs://koya/user/test-01/grafana/grafana-1/grafana.db.2021050340000
Note
  • When you stop the app and restart it, the database is recovered from the latest backup file hdfs://koya/user/test-01/grafana/grafana-1/grafana.db.
  • To recover from a versioned backup file, stop the app, copy the versioned backup file as the latest backup file, and then restart the app.