Grafana
Introduction
Grafana is an open-source visualized data monitoring platform. It provides you with various charts and panels for real-time monitoring, analysis, and visualization of various metrics and data sources.
Installing the Add-on
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Add-ons. Locate Grafana on the right and click Install.
- Configure Specifications of the add-on pods. You can adjust their CPU and memory quotas as needed.
- Configure the add-on parameters.
Table 1 Add-on parameters Parameter
Description
PVC Type
Before installing Grafana, create a storage volume to store local data. When Grafana is uninstalled, this storage volume will not be deleted.
- If you selected EVS, you need to select an EVS disk type. The EVS disk types supported by different regions may vary. You can see the available disk types on the console.
EVS disks are charged by storage capacity and occupy your EVS disk quotas.
Capacity (GiB)
Expand the disk capacity after the disk is created. The EVS disk size is 5 GiB by default. For details, see Related Operations.
Interconnect with AOM
Retrieve monitoring data from AOM. Once enabled, you can select the corresponding AOM instance. Currently, only AOM instances of the Prometheus for CCE type are supported.
- If you selected EVS, you need to select an EVS disk type. The EVS disk types supported by different regions may vary. You can see the available disk types on the console.
- Configure deployment policies for the add-on pods.
Table 2 Configurations for add-on scheduling Parameter
Description
Node Affinity
- Not configured: Node affinity is disabled for the add-on pods.
- Specify node: Specify the nodes where the add-on pods are deployed. If you do not specify the nodes, the add-on pods will be randomly scheduled based on the default cluster scheduling policy.
- Specify node pool: Specify the node pool where the add-on pods are deployed. If you do not specify the node pools, the add-on pods will be randomly scheduled based on the default cluster scheduling policy.
- Customize affinity: Enter the labels of the nodes where the add-on pods are to be deployed for more flexible scheduling policies. If you do not specify node labels, the add-on pods will be randomly scheduled based on the default cluster scheduling policy.
If multiple custom affinity policies are configured, ensure that there are nodes that meet all the affinity policies in the cluster. Otherwise, the add-on pods cannot run.
Toleration
Using both taints and tolerations enables (but does not require) the add-on's Deployment pods to be scheduled on nodes with matching taints, and allows control over pod eviction policies when host nodes are tainted.
The add-on applies default toleration policies for the node.kubernetes.io/not-ready and node.kubernetes.io/unreachable taints on pods. The tolerance time window is 60s.
For details, see Configuring Tolerance Policies.
- Click Install.
After the add-on is installed, select the cluster and choose Add-ons in the navigation pane. On the displayed page, select Installed add-ons to view the add-on.
Components
| Component | Description | Resource Type |
|---|---|---|
| grafana | Provide Grafana data visualization. | Deployment |
How to Use the Add-on
To access Grafana through the Internet, enable Public Access and access a load balancer to Grafana.
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Add-ons. Locate Grafana on the right and click Edit.
- Enable Public Access and select a load balancer. Only load balancers in the same VPC as the cluster are supported. The selected load balancer must have an EIP bound.
If you enabled Public Access, Grafana services will be exposed to the Internet. It is advised to assess the security risks and establish access control policies.

- Click OK. After the update, the Access button is displayed. Click it to access Grafana.

- Log in to Grafana to use its functions. You can use the default username and password to log in to Grafana for the first time. For details, see Sign in to Grafana. After the login is successful, the system prompts you to change the password.
- After the login, select a dashboard on Grafana to obtain the needed aggregation content. Figure 1 Grafana panel