You need to enable JavaScript to run this app.
Volcengine Managed Service for Prometheus

Volcengine Managed Service for Prometheus

Copy page
Download PDF
High-availability collection solution
Managing VM Agent
Copy page
Download PDF
Managing VM Agent
After the VM Agent collector is installed, you can use the deployment script to uninstall the collector and vm-operator. This topic describes how to uninstall the VM Agent collector and vm-operator.​
warning​
When you uninstall VM Agent and vm-operator, first delete VM Agent, and then delete vm-operator after ensuring the corresponding workload no longer exists.​
Uninstall VM Agent​
  1. Download the script in your local environment. For more details, refer to Obtaining the script.​
  1. Use kubectl to connect to the Kubernetes cluster.​
  1. Run the following command to uninstall the VM Agent collector:​
​
./install.sh uninstall \​
--agent vmagent \​
--region cn-beijing​
​
Uninstall vm-operator​
  1. Download the script in your local environment. For more details, refer to Obtaining a script.​
  1. Use kubectl to connect to the Kubernetes cluster.​
  1. Run the following command to uninstall vm-operator:​
​
./install.sh uninstall-operator \​
--region cn-beijing \​
--namespace volcano-metrics​
​
Use the --help parameter​
Use the --help parameter when uninstalling VM Agent​
You can view all the predefined fields and their meanings in the script by using the --help parameter.​
​
./install.sh uninstall --help​
​
The following section describes the meanings and examples of different fields in the script.​
​
./install.sh uninstall --help​
uninstall agent and system metrics exporter​
​
Usage: install.sh uninstall [flag...]​
​
Flag:​
{{flag}} {{current val if exist}}​
--agent vmagent​
--region cn-beijing​
--exec-script-env local​
--namespace volcano-metrics​
--vmpagent-name vmagent​
​
​
Parameters​
Description​
--agent​
Select the collector to uninstall. The value is fixed as vmagent.​
--region​
The region of the VMP workspace, such as cn-beijing.​
--exec-script-env​
The script execution environment, including:​
  • local: the local environment. It indicates that you execute the script in your local environment.​
  • public-cloud-vpc: the VPC. It indicates that you execute the script in the VPC.​
--namespace​
The namespace of Grafana. If you do not specify this parameter, the collector will be deployed in the volcano-metrics namespace by default.​
--vmpagent-name​
The name of the collector.​
​
Use the --help parameter when uninstalling vm-operator​
You can view all the predefined fields and their meanings in the script by using the --help parameter.​
​
./install.sh uninstall-operator --help​
​
The following section describes the meanings and examples of different fields in the script.​
​
./install.sh uninstall-operator --help​
uninstall operator​
​
Usage: install.sh uninstall-operator [flag...]​
​
Flag:​
{{flag}} {{current val if exist}}​
--region cn-beijing​
--exec-script-env local​
--namespace volcano-metrics​
​
​
Parameters​
Description​
--region​
The region of the VMP workspace, such as cn-beijing.​
--exec-script-env​
The script execution environment, including:​
  • local: the local environment. It indicates that you execute the script in your local environment.​
  • public-cloud-vpc: the VPC. It indicates that you execute the script in the VPC.​
--namespace​
The namespace of the collector. If you do not specify this parameter, the collector will be deployed in the volcano-metrics namespace by default.​
​
​
Last updated: 2026.10.10 10:16:50