- Print
- PDF
Using Grafana
- Print
- PDF
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.
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.
- From the NAVER Cloud Platform console, click the Services > Big Data & Analytics > Data Forest menus, in that order.
- Click the Data Forest > Apps menu on the left.
- Select the account that owns the app.
- Click the app whose details you want to view.
- View the app details.
- 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.
- Quick links
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:
The following is the screen after accessing the Grafana server link.
The following is the screen after accessing the supervisor link.
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.
- Access the Grafana server.
- Click the Configuration > Data Sources menu.
- Click the [Add data source] button.
- You can see various Data Sources supported by Grafana.
- Click [OpenTSDB].
- Check the settings information, and then click the [Save & Test] button.
- 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
- HTTP / URL: The URL created after the test-01 user runs the OpenTSDB app under the name opentsdb is
- 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
- 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.