- Documentation
Volcengine Managed Service for Prometheus
Best practices
Resource and application monitoring
Monitoring GPUs in a custom Kubernetes cluster
Resource and application monitoring
Monitoring GPUs in a custom Kubernetes cluster
Monitoring GPUs in a custom Kubernetes cluster
You can use Volcengine Managed Service for Prometheus (VMP) to monitor GPUs in the nodes of your self-built cluster. This topic describes the procedure and considerations for configuration.
Background
In Kubernetes clusters, you can use the dcgm-exporter agent to expose GPU metrics Therefore, you can use VMP to monitor the status information of GPUs in the nodes of your self-built cluster.
Prerequisites
- A Volcano Engine root user has been created, and VMP has been activated.
- A self-built Kubernetes cluster is created, and GPU nodes exist in the cluster.
- The Kubernetes version of the self-built cluster is v1.20 to v1.24. Otherwise, compatibility issues may occur.
- The local environment (Linux/Mac) is configured.
- Download and install the latest version of the kubectl tool in the local environment. For more details, refer to Install Tools.
- In the local environment, use kubectl to connect to the self-built cluster.
- Correctly install command-line tools (such as wget, echo, curl, and sed) in the local environment.
Procedure
Step 1: Install dcgm-exporter in the cluster
Step 2: Deploy the collector
- Use kubectl to connect to the self-built cluster.
- Run the following command to deploy the VM Agent collector in the self-built cluster:
Step 3: Configure a collection rule
Use ServiceMonitor or PodMonitor to configure a collection rule in the self-built cluster. This topic provides an example of how to configure a collection rule by using ServiceMonitor.
tip
For more configuration methods of service discovery in clusters, refer to Service discovery. Validate results
Log in to Grafana and create a GPU-related dashboard by using a GPU-related PromQL statement. Then, you can view the GPU monitoring information.
Last updated: 2026.10.10 11:04:51