Installation
TOC
OverviewBefore You BeginLocalVolume Storage Path on Immutable InfrastructureInstall Perses Dashboard ComponentsACP Monitoring with PrometheusInstall from the ConsoleInstall with YAMLPlace Prometheus Workloads on Infra NodesAccess the Installed ComponentsACP Monitoring with VictoriaMetricsPrerequisitesInstall 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 Monitoring with Prometheus or ACP Monitoring with VictoriaMetrics 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 Cluster Node Planning.
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 access port 11780 of the workload cluster. - 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. The
globalcluster installs its own full component set and monitors only itself. On a multi-cluster platform, install the VictoriaMetrics Center that aggregates workload cluster metrics in a dedicated workload cluster rather than in theglobalcluster, and install each workload cluster in agent-only mode pointing at that cluster, so that management cluster availability and application monitoring load stay independent. - If the
globalcluster is deployed with disaster recovery, workload cluster monitoring must not point to either the primary or the standbyglobalcluster. 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. Eachglobalcluster monitors only itself. See Global Cluster Disaster Recovery for the synchronization scope. - If the cluster uses Immutable Infrastructure and you plan to use
LocalVolumestorage, do not keep the default storage path. See LocalVolume Storage Path on Immutable Infrastructure.
LocalVolume Storage Path on Immutable Infrastructure
Both monitoring plugins default the LocalVolume storage path to /cpaas/monitoring, which belongs to the traditional operating system layout. On clusters that use Immutable Infrastructure, nodes run Alauda OS with 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 Immutable OS clusters. 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 Creating Clusters. On Bare Metal the disks are already attached to the physical host and are declared on the long-lived
MachineInventoryinstead of being requested from an IaaS platform, so follow Manage Data Disks on Bare-Metal Hosts and declare the volume while the inventory is still unallocated. -
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 Monitoring with Prometheus, 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 for Perses 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 for Perses 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 for Perses, 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 Monitoring with Prometheus
Install from the Console
-
Navigate to App Store Management > Cluster Plugins and select the target cluster.
-
Locate the ACP Monitoring with Prometheus 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 Monitoring with VictoriaMetrics
Prerequisites
- If you install only the VictoriaMetrics agent, ensure that the VictoriaMetrics Center has been installed in another cluster.
Install from the Console
-
Navigate to App Store Management > Cluster Plugins and select the target cluster.
-
Locate the ACP Monitoring with VictoriaMetrics 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.