Installation
This article will introduce how to install the components required for metering and billing.
TOC
Preinstall Considerations
-
Download the latest version of the Cost Management Plugin from Custom Portal and upload it to the platform by
violet. -
The Cost Management Server, Cost Management Essentials and Cost Management Agent work together to provide the overall metering and billing functionality of the platform. The server-side component supports data storage capabilities related to metering and billing, while the client-side component handles data collection and billing capabilities.
-
Cost Management Server supports deployment in any cluster, but the platform currently only supports deploying one server. Do not deploy multiple servers, as this may cause abnormal issues such as data duplication.
-
The Cost Management Server component relies on ClickHouse as its data storage solution. You can either install the ACP Log Storage with Clickhouse plugin provided by the platform or install ClickHouse on your own for integration.
-
The Cost Management Essentials needs to integrate with the Cost Management Server component.
-
The Cost Management Agent component requires that the corresponding cluster has the ACP Monitor with Prometheus monitoring component installed. Please ensure that this component is successfully installed in advance.
Install the Cost Management Server Plugin via Console
Prerequisites
- The Cost Management Server Plugin component relies on ClickHouse as its data storage solution. You can either install the ACP Log Storage with Clickhouse plugin provided by the platform or install ClickHouse on your own for integration.
Procedure
-
Log in to the cluster where the ACP Log Storage with Clickhouse plugin is installed and obtain ClickHouse integration information:
-
In the left navigation bar, click Marketing Place > Plugin Management.
-
Select the cluster which you plan to install the plugin.
-
Find the Cost Management Server plugin and click the Install button in the right actions bar.
-
Refer to the following description to configure the relevant parameters.
-
Click Install.
Install the Cost Management Server Plugin via YAML
Prerequisites
- The Cost Management Server Plugin component relies on ClickHouse as its data storage solution. You can either install the ACP Log Storage with Clickhouse plugin provided by the platform or install ClickHouse on your own for integration.
Procedure
-
Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the
globalcluster:This indicates that the ModulePlugin
cost-serverexists in the cluster and versionv4.1.0is published. -
Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference (cost-server):
-
Verify 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
Install the Cost Management Essentials Plugin via Console
Prerequisites
- The Cost Management Essentials Plugin needs to integrate with the Cost Management Server component. So you need to install the Cost Management Server plugin first.
Procedure
-
In the left navigation bar, click Marketing Place > Plugin Management.
-
Select the
globalcluster. -
Find the Cost Management Server plugin and click the Install button in the right actions bar.
-
Select the cluster name which installed the
Cost Management Server plugin -
Click Install.
Install the Cost Management Essentials Plugin via YAML
Prerequisites
- The Cost Management Essentials Plugin needs to integrate with the Cost Management Server component. So you need to install the Cost Management Server plugin first.
-
Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the
globalcluster:This indicates that the ModulePlugin
cost-apiexists in the cluster and versionv4.1.0is published. -
Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference (cost-api):
-
Verify 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
Install the Cost Management Agent Plugin via Console
Prerequisites
-
The Cost Management Agent Plugin component requires that the corresponding cluster has the ACP Monitor with Prometheus monitoring component installed. Please ensure that this component is successfully installed in advance.
-
The Cost Management Agent Plugin needs to integrate with the Cost Management Server component. So you need to install the Cost Management Server plugin first.
Procedure
-
In the left navigation bar, click Marketing Place > Plugin Management.
-
Select the cluster where this plugin needs to be installed.
-
Find the Cost Management Agent plugin and click the Install button in the right actions bar.
-
Select the cluster name which installed the
Cost Management Server plugin -
Click Install.
Install the Cost Management Agent Plugin via YAML
Prerequisites
-
The Cost Management Agent Plugin component requires that the corresponding cluster has the ACP Monitor with Prometheus monitoring component installed. Please ensure that this component is successfully installed in advance.
-
The Cost Management Agent Plugin needs to integrate with the Cost Management Server component. So you need to install the Cost Management Server plugin first.
Procedure
-
Check available versions
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in the
globalcluster:This indicates that the ModulePlugin
cost-agentexists in the cluster and versionv4.1.0is published. -
Create a ModuleInfo
Create a ModuleInfo resource to install the plugin without any configuration parameters:
YAML field reference (cost-agent):
-
Verify installation
Since the ModuleInfo name changes upon creation, locate the resource via label to check the plugin status and version: