Installation
TOC
OverviewBefore You BeginLocalVolume Storage Is DeprecatedLocalVolume Storage Path on Alauda OSInstall Perses Dashboard ComponentsACP Basic MonitoringInstall from the ConsoleInstall with YAMLPlace Prometheus Workloads on Infra NodesAccess the Installed ComponentsACP Advanced MonitoringPrerequisitesHigh AvailabilityInstall from the ConsoleInstall with YAMLPlace VictoriaMetrics Workloads on Infra NodesAccess the Installed ComponentsOverview
The monitoring component provides the infrastructure for monitoring, alerting, inspection, and health checking functions within the observability module. Install ACP Basic Monitoring or ACP Advanced Monitoring in a cluster.
To decide which plugin to install, first review the Monitoring Component Selection Guide and choose the option that best fits your cluster scale, storage plan, and operational requirements.
Perses monitoring dashboards require additional dashboard components. Install these components when you need to view, create, or migrate dashboards in Operations Center > Monitor > Dashboards (Perses).
Before You Begin
Some Monitoring components are resource-intensive. We recommend placing them on infra nodes through plugin configuration. Prometheus and VictoriaMetrics both support plugin-level nodeSelector and tolerations settings. If you are evaluating the product and have not provisioned infra nodes, you can leave these settings empty so the components run on general nodes.
For guidance on planning infra nodes, see Infra Nodes.
Before installing the monitoring components, please ensure the following conditions are met:
- The appropriate monitoring component has been selected by referring to the Monitoring Component Selection Guide.
- When installing in a workload cluster, ensure that the
globalcluster can reach the workload cluster as listed in Workload Cluster VIP and Nodes. - If you need to use storage classes or persistent volume storage for monitoring data, please create the corresponding resources in the Storage section in advance.
- Decide which cluster stores the monitoring data before you install. By default, install monitoring in every cluster, so that each cluster stores and queries its own monitoring data. The
globalcluster installs its own full component set and monitors only itself. If you need to view and manage the monitoring data of several clusters in one place, or you do not want to run the full set of components in every cluster, you can send the data of several clusters to one VictoriaMetrics Center: install the VictoriaMetrics Center in one cluster and install the other clusters in agent-only mode pointing at that cluster. The Center can be installed in any cluster; if theglobalcluster is deployed with disaster recovery, do not use it as the Center (see the next item). Only one VictoriaMetrics Center can be installed in a cluster, the clusters that send data must be able to reach the cluster that hosts the Center, and the total monitoring scale must stay within the largest scale in Monitor Component Capacity Planning. For the differences between these options and Fleet Monitoring, see Multi-Cluster Monitoring Options. - If the
globalcluster is deployed with disaster recovery, eachglobalcluster monitors only itself: do not let the primary and standbyglobalclusters share one monitoring system, and do not point workload cluster monitoring to either of them. Disaster recovery synchronizes only theglobalcluster's etcd data and excludes namespaces such ascpaas-system, so monitoring data is not replicated and would be unavailable after a failover. See Global Cluster Disaster Recovery for the synchronization scope. - Use
StorageClassorPVstorage.LocalVolumestorage is deprecated; see LocalVolume Storage Is Deprecated. If you keep usingLocalVolumeon Alauda OS nodes, do not keep the default storage path. See LocalVolume Storage Path on Alauda OS.
LocalVolume Storage Is Deprecated
Starting from ACP 4.5, the LocalVolume storage type of both monitoring plugins is deprecated. It is still available, but a future release may remove it.
- For new installations, use
StorageClassorPV.LocalVolumedata lives in a host directory of a single node and is not preserved when that node is replaced. On bare-metal clusters whose nodes run Alauda OS,LocalVolumedata cannot be persisted, so do not use it. - Existing installations that use
LocalVolumekeep working after you upgrade. Plan to move toStorageClassorPVbefore a future release removesLocalVolume.
LocalVolume Storage Path on Alauda OS
This section applies only to existing installations that still use the deprecated LocalVolume storage type.
Both monitoring plugins default the LocalVolume storage path to /cpaas/monitoring, which belongs to the layout of nodes that run a non-Alauda OS. On clusters whose nodes run Alauda OS, nodes have a read-only root filesystem, and node-local platform data is kept under /var/cpaas on a persistent disk declared in the provider's machine configuration. Anything written outside those declared disks is not preserved when the platform replaces a node. Other platform components already follow this convention; for example, etcd backup uses /var/cpaas/backup on clusters whose nodes run Alauda OS. See etcd Backup and Restore.
When you install either monitoring plugin with LocalVolume storage on such a cluster:
-
Set the storage path to
/var/cpaas/monitoringinstead of the default/cpaas/monitoring. In the console, set Storage Path; in YAML, setspec.config.storage.path. -
Back that path with a persistent disk on every node listed in
spec.config.storage.nodes, sized for the storage capacity you configure. The platform creates the data directory under this path on each of those nodes, so the path must be writable. Declare the disk in the persistent-disk field of the provider that manages the cluster, so that it survives node replacement:For the declaration procedure of each provider, see Create a Cluster on Alauda OS.
-
Do not let monitoring data share the platform
/var/cpaasdisk unplanned. Monitoring data grows with the configured scale and retention period, so either give/var/cpaas/monitoringa dedicated disk or size the existing/var/cpaasdisk to cover the monitoring capacity as well.
Set the path when you install the plugin. For ACP Basic Monitoring, storage configuration cannot be modified after installation.
Install Perses Dashboard Components
Perses monitoring dashboards depend on the following components:
Perses server and observe-api are created only in the global cluster. When you select a workload cluster in the console, the console still routes Perses server requests to the global cluster. The selected workload cluster determines which cluster's metrics and PersesDashboard resources are used. observe-api queries metrics across clusters and enforces RBAC.
Install the components in the following order:
-
Install Alauda Container Platform Dashboard Essentials in the
globalcluster. -
Create an
ObserveAPIinstance in theglobalcluster. You can use the Create action of the component or OperatorHub entry, or apply a CR such as the following:Verify that the
observe-apiDeployment is running. -
Install Alauda Container Platform Dashboard in the
globalcluster. -
Create the only
Persesinstance in theglobalcluster. You can use the Create action of the component or OperatorHub entry, or apply a CR such as the following:Verify that the
cpaas-persesDeployment is running. -
For each workload cluster where users need to view or create Perses dashboards, install Alauda Container Platform Dashboard to provide PersesDashboard CRDs in that cluster. Do not create a
Persesinstance in workload clusters. -
Go to Operations Center > Monitor > Dashboards (Perses) and verify that the dashboard list is available in the selected cluster.
If a selected cluster has not installed Alauda Container Platform Dashboard, the Perses dashboard page shows an installation guide instead of a dashboard list.
The Perses dashboard components reuse the existing platform metric storage, such as VictoriaMetrics or Prometheus. They do not introduce a separate metric storage or tenant.
Installing the operators only installs the controllers and CRDs. You must create the corresponding ObserveAPI and Perses instances in the global cluster before the actual observe-api and Perses server workloads are started.
ACP Basic Monitoring
Install from the Console
-
Navigate to App Store Management > Cluster Plugins and select the target cluster.
-
Locate the ACP Basic Monitoring plugin and click Install.
-
Configure the following parameters:
The console highlights the most common installation options. For detailed configurable fields, see the YAML reference in this section.
-
Click Install to complete the installation.
Install with YAML
Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources in the global cluster:
This indicates that the ModulePlugin prometheus exists in the cluster and version v4.1.0 is published.
Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
Resource settings example (Prometheus):
For more details, refer to Monitor Component Capacity Planning.
YAML field reference (Prometheus):
Verify the installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:
Field explanations:
NAME: ModuleInfo resource nameCLUSTER: Cluster where the plugin is installedMODULE: Plugin nameDISPLAY_NAME: Display name of the pluginSTATUS: Installation status;Runningmeans successfully installed and runningTARGET_VERSION: Intended installation versionCURRENT_VERSION: Version before installationNEW_VERSION: Latest available version for installation
Place Prometheus Workloads on Infra Nodes
If you want the Prometheus plugin workloads to run on dedicated infra nodes, configure plugin-level scheduling rules during installation or upgrade instead of patching generated workloads after installation.
- In the console, use Advanced Configuration to set Node Selectors and Node Tolerations.
- In YAML, set
spec.config.components.nodeSelectorandspec.config.components.tolerations.
Example:
Before applying these scheduling rules, make sure your infra node planning and storage placement are compatible. For the planning considerations, see the Monitoring guides in How To, including Planning Infra Nodes for Monitoring.
Access the Installed Components
Once installation is complete, the components can be accessed at the following addresses (replace <> with actual values):
ACP Advanced Monitoring
Prerequisites
- If you install only the VictoriaMetrics agent, ensure that the VictoriaMetrics Center has been installed in another cluster.
High Availability
To run the VictoriaMetrics Center in a highly available way, deploy at least three VMStorage replicas.
- ACP sets the VictoriaMetrics replication factor to 2, so each sample is stored on two different VMStorage replicas. This value is not configurable in the console or in the ModuleInfo.
- VictoriaMetrics requires at least
2 × N - 1storage nodes for a replication factor ofN. With a replication factor of 2, three VMStorage replicas keep two copies of newly written data while one replica is unavailable. With fewer replicas, the cluster cannot do this. - Set Replica Count (
spec.config.replicas) to 3 or more when Storage Type isStorageClassorPV. The default is 1.
Install from the Console
-
Navigate to App Store Management > Cluster Plugins and select the target cluster.
-
Locate the ACP Advanced Monitoring plugin and click Install.
-
Configure the following parameters:
The console highlights the most common installation options. For detailed configurable fields, see the YAML reference in this section.
-
Click Install to complete the installation.
Install with YAML
Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources in the global cluster:
This indicates that the ModulePlugin victoriametrics exists in the cluster and version v4.1.0 is published.
Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
Resource settings example (vmagent):
For more details, refer to Monitor Component Capacity Planning.
YAML field reference (VictoriaMetrics):
Verify the installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:
Field explanations:
NAME: ModuleInfo resource nameCLUSTER: Cluster where the plugin is installedMODULE: Plugin nameDISPLAY_NAME: Display name of the pluginSTATUS: Installation status;Runningmeans successfully installed and runningTARGET_VERSION: Intended installation versionCURRENT_VERSION: Version before installationNEW_VERSION: Latest available version for installation
Place VictoriaMetrics Workloads on Infra Nodes
If you want the VictoriaMetrics plugin workloads to run on dedicated infra nodes, configure plugin-level scheduling rules during installation or upgrade instead of patching generated workloads after installation.
- In the console, use Advanced Configuration to set Node Selectors and Node Tolerations.
- In YAML, set
spec.config.components.nodeSelectorandspec.config.components.tolerations.
Example:
Before applying these scheduling rules, make sure your infra node planning and storage placement are compatible. For the planning considerations, see the Monitoring guides in How To, including Planning Infra Nodes for Monitoring.
Access the Installed Components
Once installation is complete, the components can be accessed at the following address (replace <> with actual values):
If Install Agent Only is enabled, the cluster does not deploy the vmselect component locally, so the VictoriaMetrics UI address is unavailable in that cluster.