Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Cloud Container Engine/ User Guide/ Scheduling/ GPU Scheduling/ Configuring NVIDIA GPU to Use DCGM-Exporter for GPU Metric Monitoring

Configuring NVIDIA GPU to Use DCGM-Exporter for GPU Metric Monitoring

Updated on 2025-02-18 GMT+08:00

It is essential for O&M personnel to monitor large-scale Kubernetes-based GPU devices. By tracking GPU metrics, the O&M personnel can gain valuable insights into the overall utilization, health status, and workload performance of the entire cluster, thereby facilitating swift issue resolution, optimized GPU resource allocation, and enhanced resource efficiency. Moreover, data scientists and AI algorithm engineers can leverage relevant monitoring metrics to learn about the organization's GPU usage patterns, ultimately supporting informed capacity planning and task scheduling decisions.

The latest NVIDIA offerings enable the utilization of the Data Center GPU Manager (DCGM) for managing large-scale GPU clusters. The CCE AI Suite (NVIDIA GPU) add-on, version 2.7.32 or later, is built on NVIDIA DCGM, providing advanced GPU monitoring functionalities. DCGM offers a broad spectrum of GPU monitoring metrics, featuring:

  • GPU behavior monitoring
  • GPU configuration management
  • GPU policy management
  • GPU health diagnosis
  • Statistics on GPUs and threads
  • Configuration and monitoring for NVSwitches

This section leverages CCE Cloud Native Cluster Monitoring and DCGM Exporter to monitor GPUs in comprehensive scenarios. For details about commonly used metrics, see GPU Metrics. For more information about DCGM-Exporter, see DCGM-Exporter.

Prerequisites

A NVIDIA GPU node is running properly in the cluster.

Step 1: Enable DCGM-Exporter

  1. Log in to the CCE console and click the cluster name to access the cluster console. In the navigation pane, choose Add-ons, locate CCE AI Suite (NVIDIA GPU) on the right, and click Install.
  2. Enable Use DCGM-Exporter to Observe DCGM Metrics. Then, DCGM-Exporter will be deployed as a DaemonSet on GPU nodes.

    NOTICE:

    DCGM-Exporter is seamlessly integrated into NVIDIA GPU of version 2.1.24, 2.7.40, or later versions. However, it is not supported in earlier versions.

    To send GPU monitoring data to AOM, enable Report Monitoring Data to AOM in Cloud Native Cluster Monitoring after enabling DCGM-Exporter. GPU metrics reported to AOM are custom metrics and you will be billed on a pay-per-use basis for them. For details, see Pricing Details.

  3. Configure other parameters for the add-on and click Install. For details about parameter settings, see CCE AI Suite (NVIDIA GPU).

Step 2: Collect DCGM Metrics

NOTICE:

By default, the metrics exposed by DCGM-Exporter are not collected and reported by Prometheus. To use Prometheus or Grafana to view these metrics, enable ServiceMonitor for DCGM-Exporter.

ServiceMonitor for DCGM-Exporter has been preset in Cloud Native Cluster Monitoring (kube-prometheus-stack) of version 3.12.0 or later. You can enable it in Settings.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Add-ons and install the Cloud Native Cluster Monitoring. Then, enable Report Monitoring Data to AOM and select the target AOM instance. For details about other settings, see Cloud Native Cluster Monitoring.

  3. In the navigation pane, choose Settings. Then, click the Monitoring tab.
  4. In the Collection configuration area, find ServiceMonitor and click Manage.
  5. Search for ServiceMonitor of DCGM-Exporter and enable it.

Step 3: View DCGM Metrics on AOM

  1. Go to the AOM console and select the target AOM instance in the instance list.

  2. Choose Metric Management in the navigation pane and check DCGM metrics.

Step 4: Use Grafana to View DCGM Metrics

  1. In the navigation pane, choose Add-ons, install Grafana, enable Interconnecting Data Sources with AOM, and select the interconnected AOM instance.

  2. Go to the AOM console and select the target AOM instance in the instance list.

  3. Choose Settings in the navigation pane. In the Grafana Data Source Info area, obtain the AOM instance URL, username, and password. If Grafana Data Source Info is unavailable for the AOM instance, click Add Access Code in the Credential area to generate the Grafana data source configuration.

  4. Access Grafana and add the Prometheus data source to Grafana.

  5. Configure AOM settings, including enabling Basic auth and Skip TLS Verify.

  6. Import NVIDIA DCGM Exporter Dashboard, which is provided by NVIDIA for displaying DCGM metrics. For details about how to import dashboards to Grafana, see Manage dashboards.
  7. View the imported dashboard.

Appendix: Troubleshooting DCGM-Exporter Faults

Check the running status.

  1. On the NVIDIA GPU details page, check whether the target pod is running.

  2. Check pod logs for the HTTP server listening status.

  3. Run the curl command in the cluster to access DCGM-Exporter and check whether data can be obtained.
    1. Check DCGM-Exporter's pod IP address.
      kubectl get po -A -owide | grep dcgm
    2. Check data. In the following command, 10.1.1.15 is the obtained pod IP address:
      curl 10.1.1.15:9400/metrics | head

Helpful Links

GPU Metrics

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback