Installation

Overview

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

INFO

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 global cluster 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 global cluster 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 the global cluster 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 global cluster is deployed with disaster recovery, each global cluster monitors only itself: do not let the primary and standby global clusters share one monitoring system, and do not point workload cluster monitoring to either of them. Disaster recovery synchronizes only the global cluster's etcd data and excludes namespaces such as cpaas-system, so monitoring data is not replicated and would be unavailable after a failover. See Global Cluster Disaster Recovery for the synchronization scope.
  • Use StorageClass or PV storage. LocalVolume storage is deprecated; see LocalVolume Storage Is Deprecated. If you keep using LocalVolume on Alauda OS nodes, do not keep the default storage path. See LocalVolume Storage Path on Alauda OS.

LocalVolume Storage Is Deprecated

WARNING

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 StorageClass or PV. LocalVolume data 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, LocalVolume data cannot be persisted, so do not use it.
  • Existing installations that use LocalVolume keep working after you upgrade. Plan to move to StorageClass or PV before a future release removes LocalVolume.

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/monitoring instead of the default /cpaas/monitoring. In the console, set Storage Path; in YAML, set spec.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:

    ProviderPersistent disk field
    Huawei DCSDCSIpHostnamePool.spec.pool[].persistentDisk
    VMware vSphereVSphereMachineConfigPool.spec.configs[].persistentDisks[]
    Huawei Cloud StackHCSMachineConfigPool.spec.configs[].persistentDisks[]

    For the declaration procedure of each provider, see Create a Cluster on Alauda OS.

  • Do not let monitoring data share the platform /var/cpaas disk unplanned. Monitoring data grows with the configured scale and retention period, so either give /var/cpaas/monitoring a dedicated disk or size the existing /var/cpaas disk 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:

ComponentInstallation locationPurpose
Alauda Container Platform Dashboard EssentialsOnly the global clusterProvides the RBAC-aware metric query service used by Perses dashboards.
Alauda Container Platform DashboardThe global cluster runs the only Perses server instance. Workload clusters install the operator as needed to provide PersesDashboard CRDs, but do not create Perses instances.Provides the Perses dashboard backend, rendering, editing, and PersesDashboard resource management capabilities.

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:

  1. Install Alauda Container Platform Dashboard Essentials in the global cluster.

  2. Create an ObserveAPI instance in the global cluster. You can use the Create action of the component or OperatorHub entry, or apply a CR such as the following:

    apiVersion: observe.alauda.io/v1alpha1
    kind: ObserveAPI
    metadata:
      name: observe-api
      namespace: cpaas-system
    spec: {}

    Verify that the observe-api Deployment is running.

  3. Install Alauda Container Platform Dashboard in the global cluster.

  4. Create the only Perses instance in the global cluster. You can use the Create action of the component or OperatorHub entry, or apply a CR such as the following:

    apiVersion: perses.dev/v1alpha2
    kind: Perses
    metadata:
      name: cpaas-perses
      namespace: cpaas-system
      annotations:
        perses.dev/ingress.enabled: "true"
    spec:
      replicas: 2
      containerPort: 8080
      storage:
        emptyDir: {}
      config:
        frontend:
          disable: true

    Verify that the cpaas-perses Deployment is running.

  5. 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 Perses instance in workload clusters.

  6. 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

  1. Navigate to App Store Management > Cluster Plugins and select the target cluster.

  2. Locate the ACP Basic Monitoring plugin and click Install.

  3. Configure the following parameters:

    The console highlights the most common installation options. For detailed configurable fields, see the YAML reference in this section.

    ParameterDescription
    Scale ConfigurationSupports three configurations: Small Scale, Medium Scale, and Large Scale:
    - Default values are set based on the recommended load test values of the platform
    - You can choose or customize quotas based on the actual cluster scale
    - Default values will be updated with ACP versions; for fixed configurations, custom settings are recommended
    Storage Type- LocalVolume (deprecated): Local storage with data stored on specified nodes
    - StorageClass: Automatically generates persistent volumes using a storage class
    - PV: Utilizes existing persistent volumes
    Note: Storage configuration cannot be modified after installation
    Storage PathDisplayed when Storage Type is LocalVolume. Host directory for storing Prometheus data; an absolute path is required. Default: /cpaas/monitoring. On Alauda OS, set /var/cpaas/monitoring; see LocalVolume Storage Path on Alauda OS.
    Replica CountSets the number of monitoring component pods
    Note: Prometheus supports only single-node installation
    Advanced ConfigurationCollapsible section for plugin-level scheduling parameters.
    Node SelectorsDisplayed in Advanced Configuration. Configure plugin-level node selector rules for the Prometheus plugin workloads.
    Node TolerationsDisplayed in Advanced Configuration. Configure plugin-level toleration rules for the Prometheus plugin workloads.
    Parameter ConfigurationData parameters for the monitoring component can be adjusted as needed
  4. 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:


# kubectl get moduleplugin | grep prometheus
prometheus                       30h
# kubectl get moduleconfig | grep prometheus
prometheus-v4.1.0                30h

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:

kind: ModuleInfo
apiVersion: cluster.alauda.io/v1alpha1
metadata:
  name: global-prometheus
  labels:
    cpaas.io/cluster-name: global
    cpaas.io/module-name: prometheus
    cpaas.io/module-type: plugin
spec:
  version: v4.1.0
  config:
    storage:
      type: StorageClass
      capacity: 40
      storageClass: <storage-class-name>
    replicas: 1
    components:
      nodeSelector:
        - key: kubernetes.io/os
          value: linux
      tolerations:
        - effect: NoSchedule
          key: node-role.kubernetes.io/infra
          operator: Exists
      prometheus:
        retention: 7
        scrapeInterval: 60
        scrapeTimeout: 45
        resources: null
      nodeExporter:
        port: 9100
        resources: null
      alertmanager:
        resources: null
      kubeStateExporter:
        resources: null
      prometheusAdapter:
        resources: null
      thanosQuery:
        resources: null
    size: Small

Resource settings example (Prometheus):

spec:
  config:
    components:
      prometheus:
        resources:
          limits:
            cpu: 2000m
            memory: 2000Mi
          requests:
            cpu: 1000m
            memory: 1000Mi

For more details, refer to Monitor Component Capacity Planning.

YAML field reference (Prometheus):

Field pathDescription
metadata.labels.cpaas.io/cluster-nameTarget cluster name where the plugin is installed.
metadata.labels.cpaas.io/module-nameMust be prometheus.
metadata.labels.cpaas.io/module-typeMust be plugin.
metadata.nameModuleInfo name (e.g., <cluster>-prometheus).
spec.versionPlugin version to install.
spec.config.storage.typeStorage type: StorageClass, PV, or the deprecated LocalVolume.
spec.config.storage.capacityStorage size for Prometheus (Gi). Minimum 30 Gi recommended.
spec.config.storage.nodesNode list when storage.type=LocalVolume (deprecated). Up to 1 node supported.
spec.config.storage.pathBase LocalVolume path when storage.type=LocalVolume (deprecated). Default: /cpaas/monitoring. On Alauda OS, set /var/cpaas/monitoring; see LocalVolume Storage Path on Alauda OS.
spec.config.storage.storageClassStorageClass name when storage.type=StorageClass.
spec.config.storage.pvSelectorKPV selector key when storage.type=PV.
spec.config.storage.pvSelectorVPV selector value when storage.type=PV.
spec.config.replicasReplica count; only applicable to StorageClass/PV types.
spec.config.components.nodeSelectorOptional. Plugin-level node selector rules for the Prometheus plugin workloads.
spec.config.components.tolerationsOptional. Plugin-level toleration rules for the Prometheus plugin workloads.
spec.config.components.prometheus.retentionData retention days.
spec.config.components.prometheus.scrapeIntervalScrape interval seconds; applies to ServiceMonitors without interval.
spec.config.components.prometheus.scrapeTimeoutScrape timeout seconds; must be less than scrapeInterval.
spec.config.components.prometheus.resourcesResource settings for Prometheus.
spec.config.components.nodeExporter.portNode Exporter port (default 9100).
spec.config.components.nodeExporter.resourcesResource settings for Node Exporter.
spec.config.components.alertmanager.resourcesResource settings for Alertmanager.
spec.config.components.kubeStateExporter.resourcesResource settings for Kube State Exporter.
spec.config.components.prometheusAdapter.resourcesResource settings for Prometheus Adapter.
spec.config.components.thanosQuery.resourcesResource settings for Thanos Query.
spec.config.sizeMonitoring scale: Small, Medium, or Large.

Verify the installation

Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:

kubectl get moduleinfo -l cpaas.io/module-name=prometheus
NAME                                             CLUSTER         MODULE        DISPLAY_NAME   STATUS    TARGET_VERSION   CURRENT_VERSION   NEW_VERSION
global-e671599464a5b1717732c5ba36079795          global          prometheus    prometheus     Running   v4.1.0           v4.1.0            v4.1.0

Field explanations:

  • NAME: ModuleInfo resource name
  • CLUSTER: Cluster where the plugin is installed
  • MODULE: Plugin name
  • DISPLAY_NAME: Display name of the plugin
  • STATUS: Installation status; Running means successfully installed and running
  • TARGET_VERSION: Intended installation version
  • CURRENT_VERSION: Version before installation
  • NEW_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.nodeSelector and spec.config.components.tolerations.

Example:

config:
  components:
    nodeSelector:
      - key: kubernetes.io/os
        value: linux
    tolerations:
      - effect: NoSchedule
        key: node-role.kubernetes.io/infra
        operator: Exists

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):

ComponentAccess Address
Thanos<platform_access_address>/clusters/<cluster>/prometheus
Prometheus<platform_access_address>/clusters/<cluster>/prometheus-0
Alertmanager<platform_access_address>/clusters/<cluster>/alertmanager

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 - 1 storage nodes for a replication factor of N. 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 is StorageClass or PV. The default is 1.

Install from the Console

  1. Navigate to App Store Management > Cluster Plugins and select the target cluster.

  2. Locate the ACP Advanced Monitoring plugin and click Install.

  3. Configure the following parameters:

    The console highlights the most common installation options. For detailed configurable fields, see the YAML reference in this section.

    ParameterDescription
    Scale ConfigurationSupports three configurations: Small Scale, Medium Scale, and Large Scale:
    - Default values are set based on the recommended load test values of the platform
    - You can choose or customize quotas based on the actual cluster scale
    - Default values will be updated with ACP versions; for fixed configurations, custom settings are recommended
    Install Agent Only- Off: Install the complete VictoriaMetrics component suite
    - On: Install only the VMAgent collection component, which relies on the VictoriaMetrics Center
    VictoriaMetrics CenterSelect the cluster where the complete VictoriaMetrics component has been installed
    Storage Type- LocalVolume (deprecated): Local storage with data stored on specified nodes
    - StorageClass: Automatically generates persistent volumes using a storage class
    - PV: Utilizes existing persistent volumes
    Storage PathDisplayed when Storage Type is LocalVolume. Specify the base storage path for monitoring data. Default: /cpaas/monitoring. On Alauda OS, set /var/cpaas/monitoring; see LocalVolume Storage Path on Alauda OS.
    Replica CountDisplayed when Storage Type is StorageClass or PV. Sets the number of monitoring component pods. When Storage Type is LocalVolume, the number of selected nodes determines the number of VMStorage replicas.
    Advanced ConfigurationCollapsible section for plugin-level scheduling parameters.
    Node SelectorsDisplayed in Advanced Configuration. Configure plugin-level node selector rules for the VictoriaMetrics plugin workloads.
    Node TolerationsDisplayed in Advanced Configuration. Configure plugin-level toleration rules for the VictoriaMetrics plugin workloads.
    Parameter ConfigurationData parameters for the monitoring component can be adjusted
    Note: Data may temporarily exceed the retention period before being deleted
  4. 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:


# kubectl get moduleplugin | grep victoriametrics
victoriametrics                       30h
# kubectl get moduleconfig | grep victoriametrics
victoriametrics-v4.1.0                30h

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:

kind: ModuleInfo
apiVersion: cluster.alauda.io/v1alpha1
metadata:
  name: business-1-victoriametrics
  labels:
    cpaas.io/cluster-name: business-1
    cpaas.io/module-name: victoriametrics
    cpaas.io/module-type: plugin
spec:
  version: v4.1.0
  config:
    storage:
      type: StorageClass
      capacity: 40
      storageClass: <storage-class-name>
    replicas: 1
    agentOnly: false
    agentReplicas: 1
    crossClusterDependency:
      victoriametrics: ""
    components:
      nodeSelector:
        - key: kubernetes.io/os
          value: linux
      tolerations:
        - effect: NoSchedule
          key: node-role.kubernetes.io/infra
          operator: Exists
      nodeExporter:
        port: 9100
        resources: null
      vmstorage:
        retention: 7
        resources: null
      kubeStateExporter:
        resources: null
      vmalert:
        resources: null
      prometheusAdapter:
        resources: null
      vmagent:
        scrapeInterval: 60
        scrapeTimeout: 45
        resources: null
      vminsert:
        resources: null
      alertmanager:
        resources: null
      vmselect:
        resources: null
    size: Small

Resource settings example (vmagent):

spec:
  config:
    components:
      vmagent:
        resources:
          limits:
            cpu: 2000m
            memory: 2000Mi
          requests:
            cpu: 1000m
            memory: 1000Mi

For more details, refer to Monitor Component Capacity Planning.

YAML field reference (VictoriaMetrics):

Field pathDescription
metadata.labels.cpaas.io/cluster-nameTarget cluster name where the plugin is installed.
metadata.labels.cpaas.io/module-nameMust be victoriametrics.
metadata.labels.cpaas.io/module-typeMust be plugin.
metadata.nameModuleInfo name (e.g., <cluster>-victoriametrics).
spec.versionPlugin version to install.
spec.config.storage.typeStorage type: StorageClass, PV, or the deprecated LocalVolume.
spec.config.storage.capacityStorage size for VictoriaMetrics (Gi). Minimum 30 Gi recommended.
spec.config.storage.nodesNode list when storage.type=LocalVolume (deprecated). You can select one or more nodes.
spec.config.storage.pathBase LocalVolume path when storage.type=LocalVolume (deprecated). Default: /cpaas/monitoring. On Alauda OS, set /var/cpaas/monitoring; see LocalVolume Storage Path on Alauda OS.
spec.config.storage.storageClassStorageClass name when storage.type=StorageClass.
spec.config.storage.pvSelectorKPV selector key when storage.type=PV.
spec.config.storage.pvSelectorVPV selector value when storage.type=PV.
spec.config.replicasReplica count; applicable to StorageClass and PV types.
spec.config.agentOnlyWhether to install only vmagent instead of the full VictoriaMetrics component set.
spec.config.agentReplicasReplica count for vmagent when agent-only mode is enabled.
spec.config.crossClusterDependency.victoriametricsTarget cluster that provides the VictoriaMetrics Center when agent-only mode is enabled.
spec.config.components.nodeSelectorOptional. Plugin-level node selector rules for the VictoriaMetrics plugin workloads.
spec.config.components.tolerationsOptional. Plugin-level toleration rules for the VictoriaMetrics plugin workloads.
spec.config.components.vmstorage.retentionData retention days for vmstorage.
spec.config.components.vmagent.scrapeIntervalScrape interval seconds; applies to ServiceMonitors without interval.
spec.config.components.vmagent.scrapeTimeoutScrape timeout seconds; must be less than scrapeInterval.
spec.config.components.vmstorage.resourcesResource settings for vmstorage.
spec.config.components.vmalert.resourcesResource settings for vmalert.
spec.config.components.nodeExporter.portNode Exporter port (default 9100).
spec.config.components.nodeExporter.resourcesResource settings for Node Exporter.
spec.config.components.alertmanager.resourcesResource settings for Alertmanager.
spec.config.components.kubeStateExporter.resourcesResource settings for Kube State Exporter.
spec.config.components.prometheusAdapter.resourcesResource settings for Prometheus Adapter (used for HPA/custom metrics).
spec.config.components.vmagent.resourcesResource settings for vmagent.
spec.config.components.vminsert.resourcesResource settings for vminsert.
spec.config.components.vmselect.resourcesResource settings for vmselect.
spec.config.sizeMonitoring scale: Small, Medium, or Large.

Verify the installation

Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version:

kubectl get moduleinfo -l cpaas.io/module-name=victoriametrics
NAME                                             CLUSTER         MODULE            DISPLAY_NAME     STATUS    TARGET_VERSION   CURRENT_VERSION   NEW_VERSION
global-e671599464a5b1717732c5ba36079795          global          victoriametrics   victoriametrics  Running   v4.1.0           v4.1.0            v4.1.0

Field explanations:

  • NAME: ModuleInfo resource name
  • CLUSTER: Cluster where the plugin is installed
  • MODULE: Plugin name
  • DISPLAY_NAME: Display name of the plugin
  • STATUS: Installation status; Running means successfully installed and running
  • TARGET_VERSION: Intended installation version
  • CURRENT_VERSION: Version before installation
  • NEW_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.nodeSelector and spec.config.components.tolerations.

Example:

config:
  components:
    nodeSelector:
      - key: kubernetes.io/os
        value: linux
    tolerations:
      - effect: NoSchedule
        key: node-role.kubernetes.io/infra
        operator: Exists

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):

ComponentAccess Address
VictoriaMetrics UI<platform_access_address>/clusters/<cluster>/vmselect-ui/vmui/?#/metrics
INFO

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.