Using Grafana
    • PDF

    Using Grafana

    • PDF

    Article Summary

    Available in VPC

    Grafana is a data visualization system where you can monitor applications through the dashboard. Each user can use their own Grafana, and they can build a monitoring system in linkage with the OpenTSDB app.

    Note

    For a detailed description of Grafana, see Grafana Labs.

    Check Grafana app details

    When the app creation is completed, you can view the details. When the Status is Stable under the app's details, it means the app is running normally. The following describes how to check the app details.

    1. From the NAVER Cloud Platform console, click the Services > Big Data & Analytics > Data Forest menus, in that order.
    2. Click the Data Forest > Apps menu on the left.
    3. Select the account that owns the app.
    4. Click the app whose details you want to view.
    5. View the app details.
      df-grafana_detail1_vpc_ko
      • Quick links
        • AppMaster: URL where the container log can be viewed. When creating apps, all apps are submitted to the YARN queue. YARN provides a Web UI where each app's details can be viewed
        • Grafana Server: URL to access the Grafana server. The Grafana admin account is the user account, but you can log in with the Data Forest account and password.
        • shell: URL to access the web shell.
        • supervisor: supervisor URL that can manage Grafana
      • Component: GRAFANA-7.5.10 type consists of one server component.
        • server: The value specified by default is the recommended resource.
    Note

    Refer to Access quick links for information on how to log in to the AppMaster UI and view the logs of each container.

    <example>
    The Grafana server login screen is as follows:
    df-grafana_04_vpc_ko

    The following is the screen after accessing the Grafana server link.
    df-grafana_05_vpc_ko

    The following is the screen after accessing the supervisor link.
    df-grafana_06_vpc_ko

    Add Data Sources

    To use Grafana, you need to add Data Source.

    The following explains how to add a running OpenTSDB app as a Data Source.

    1. Access the Grafana server.
    2. Click the Configuration > Data Sources menu.
      df-grafana_07_vpc_ko
    3. Click the [Add data source] button.
      • You can see various Data Sources supported by Grafana.
    4. Click [OpenTSDB].
      df-grafana_08_vpc_ko
    5. Check the settings information, and then click the [Save & Test] button.
      df-grafana_09_vpc_ko
      • HTTP / URL: The URL created after the test-01 user runs the OpenTSDB app under 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 successfully.
      • If you see the message Data source is working displayed, then it is successfully completed.

    Back up database

    The database files are backed up at an interval of 10 seconds to HDFS only when there are changes to the DB files. If the user has created the app called 'grafana-1', then the backup is done as shown below.

    # Latest backup file (at an interval of 10 seconds, backed up only when DB files are changed)
    hdfs://koya/user/test-01/grafana/grafana-1/grafana.db
    
    # Versioning backup file (BACKUP_VERSIONING_INTERVAL=3600, 1hour)
    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
    • If the app is stopped and restarted, then the latest backup file hdfs://koya/user/test-01/grafana/grafana-1/grafana.db is restored.
    • If you'd like to restore from a versioned backup file, then stop the app, copy the versioned backup file to the location of the latest backup file, and restart the app.

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.