You can use enterprise dashboards and Grafana plug-ins to integrate Hybrid Cloud Monitoring with Grafana. You can also use an enterprise dashboard to create self-managed Grafana instances. This topic describes how to use self-managed Grafana to view metric data in a visualized manner.
Prerequisites
Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.Background information
For information about how to integrate CloudMonitor with Grafana, see Overview.Procedure
- Install the Grafana software. Note The following example demonstrates how to install Grafana on CentOS. For more information about how to install Grafana on other operating systems, see Install Grafana.
- Optional. Install Grafana panel plug-ins.
If you need to view the monitoring data on a Grafana panel, such as Pie Chart, Gantt, or Worldmap Panel, you must install the corresponding panel plug-in. For more information about how to install Grafana panel plug-ins, visit the Grafana panel plug-in page.
- Create a namespace in Hybrid Cloud Monitoring. For more information, see Create a namespace.
- Create a metric import task. You can create metric import tasks for self-managed data centers, Alibaba Cloud services, and cloud services of third-party providers to import metrics to CloudMonitor. For more information about how to create a metric import task, see the following topics:
- View the URL and the Alibaba Cloud account that you use to connect the namespace to Grafana. Note The URL and the Alibaba Cloud account that you obtain in this step are used in Step 6 to create a data source.
- Create a data source in Grafana. Log on to Grafana after it is installed. The default port is 3000 and the default username is admin.Important The first time you log on to Grafana, we recommend that you change the password to prevent security risks.
- Add a dashboard and a monitoring chart.
- View monitoring data.