wget https://mirrors.tencent.com/install/cls/vmagent/vmagent.sh
./vmagent.sh install --secretid <secretid> --secretkey <secretkey> --endpoint https://<region-url>/prometheus/<topicID>/api/v1/write --cluster_id <cluster_id>
Parameter Name | Required | Parameter Description |
topicID | Yes | Log topic ID. |
secretid | Yes | |
secretkey | Yes | Part of the Cloud API Key. SecretKey is the key used to encrypt the signature string and verify the signature string on the server side. |
endpoint | Yes | The URL to access the CLS metric topic. The path consists of the CLS domain name and topicID. For details, see Metrics Reporting. |
cluster_id | Yes | Cluster ID, used as a metric label to distinguish the source of metrics. |
namespace | No | Specifies the namespace to install VMagent. If not specified, the default value is kube-system. Generally, it does not need to be specified. |
name | No | Specifies the name of the deployment to install VMagent. If not specified, the default value is VMagent. Generally, it does not need to be specified. |
dep | No | Whether to install dependent components (node-exporter and kube-state-metric) during installation. The default value is false. |
kind: ConfigMap apiVersion: v1 metadata: name: ${name}-config ## The name parameter specified during VMagent installation namespace: ${namespace} ## The namespace parameter specified during VMagent installation data: vmagent.yml: |- ## Prometheus metrics collection configuration. For details, see https://prometheus.io/docs/prometheus/latest/configuration/configuration/ global: scrape_interval: 15s external_labels: cluster: ${clusterID} ## The clusterID parameter specified during VMagent installation scrape_configs: - job_name: xxx

./vmagent.sh uninstall --name <vmagent-name> --namespace <ns-name> --dep true
Parameter Name | Required | Parameter Description |
namespace | No | The namespace for VMagent. If not specified, the default value is kube-system. |
name | No | The name of the VMagent deployment. If not specified, the default value is VMagent. |
dep | No | Whether to uninstall dependent components (node-exporter and kube-state-metric). The default value is true. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários