Loading...

Moneo: Distributed GPU System Monitoring for AI Workflows

Moneo: Distributed GPU System Monitoring for AI Workflows

Microsoft has introduced a new open-source GPU monitoring framework named Moneo (Latin for monitor). Moneo orchestrates metric collection (DCGMI + Prometheus DB) and visualization (Grafana) across multi-GPU/node systems.  This provides useful insights into workflow and system level characterization.

 

GPUs are optimized for high throughput, massively parallel, workloads. Efficient use of GPUs is dependent on a few factors such as workload characteristics, system characteristics, and sometimes physical environment.  GPU system level monitoring determines GPU utilization and facilitates workload characterization.  This aids in exploring how to utilize the GPU more efficiently.

 

Monitoring GPU metrics on a single system over a period may be trivial. However, formatting and analyzing the raw metric data so that it can provide intuitive insights can prove to be a tedious task. Our goal is to pair system level characterization with application metrics to determine the efficiency of our use of the GPUs.

 

Given that there is already some complexity with collecting and analyzing GPU metrics on a single system, unsurprisingly, scaling the same methodology for multiple systems is difficult.

 

For certain deep learning models use of distributed multi-GPU systems is the only feasible way to train in a reasonable time frame. Much of the application complexity is abstracted away by high level AI frameworks, but there are still configurations and design choices that users must make that ultimately affect the throughput and behavior of model training. 

 

Moneo’s usefulness in providing system level insights can help guide design choices to achieve the efficient use of GPU systems.

 

Moneo Design

Rafael_Salas_0-1655752144081.png

Figure 1: Design

Three categories of metrics that Moneo monitors:

  1. Device Counters
    1. Compute/Memory Utilization
    2. Streaming multiprocessor (SM) and Memory Clock frequency
    3. Temperature
    4. Power
    5. ECC Counts
  2. Profiling Counters
    1. SM Activity
    2. Memory Dram Activity
    3. NVLink Activity
    4. PCIE Rate
  3. InfiniBand Network Counters
    1. IB TX/RX rate

Once Moneo has been launched these metrics can be viewed from the Grafana portal. See figures 2,3,4 for snapshots of the different metric views.

Rafael_Salas_1-1655752346436.png

Figure 2: Device Counter View

 

Rafael_Salas_2-1655752354193.png

Figure 3: Profiling Counter View

 

Rafael_Salas_2-1655754097583.png

Figure 4: IB Counter View

 

 

Getting Started

Starting with Moneo is easy. Just clone the latest release from the Moneo Repo and follow the README for detailed setup instructions or take a look at the quick start guide.  In a short period, you should be able to launch Moneo with a single command and log into the Grafana portal to start seeing results!

 

Moneo is also available on Azure HPC + AI Ubuntu images.  Just navigate to “/opt/azurehpc/tools/Moneo”. The image has all the required dependencies installed. So, all that’s necessary is configuring and deploying Moneo.

 

Quick start instructions:

  1. Clone Moneo from Github and install ansible.
    1. git clone https://github.com/Azure/Moneo.git
    2. cd Moneo
    3. python3 -m pip install ansible
  1. Next create a host.ini config file.

    Rafael_Salas_4-1655752618982.png

    • Note: The master node can also be a worker node as well. The master node will have the Grafana and Prometheus docker containers deployed to it.

    • Note: If you have configured password less SSH already, [all:vars] section can be skipped.

    • Note: The master node must be able to ssh into itself. 

  2. Now deploy Moneo
    • ansible-playbook -i host.ini src/ansible/deploy.yaml
  3. Log into the portal by navigating to http://master-ip-or-domain:3000 and inputting your credentials
    • Rafael_Salas_5-1655752797433.png
    • Note: By default, username/password are set to "azure". This can be changed here "src/master/grafana/grafana.env"
  4. Navigating Moneo Grafana Portal
    1. The current view is labeled in the top left corner:
      • Rafael_Salas_6-1655753066606.png

         

    2. VM instance and GPU can be selected from the drop-down menus in the top left corner:
      • Rafael_Salas_7-1655753080675.png

         

    3. Various actions such as dashboard selection or data source configuration can be achieved using the left screen menu:Rafael_Salas_12-1655753496902.png

       

    4. Metric groups are collapsible:

Rafael_Salas_10-1655753451422.png

 

 

 

 

 

 

 

Published on:

Learn more
Azure Compute Blog articles
Azure Compute Blog articles

Azure Compute Blog articles

Share post:

Related posts

How to send an automated email in Dataverse using Power Automate?

This article outlines how to automate sending welcome emails to customers upon creating contact records in Dataverse using Power Automate. It ...

2 days ago

Introduction to Managing a WordPress blog using Power Automate – Part 1

My WordPress blog SharePains.com has been running on WordPress for a very long time now, and with so many posts it is a real challenge to make...

2 days ago

Power Automate: mod function

Power Automate’s “mod” function helps you find the remainder after dividing one number by another. While it might not be the...

4 days ago

Update Business Process Flow Stage using Excel Import with Power Automate – Dataverse / Dynamics 365

In some business scenarios, we might need to update the Business Process Flow (BPF) stage of a record during an Excel import — especially duri...

6 days ago

When an Item is Deleted trigger is not triggering in Power Automate

Today Connor and I found that a flow with the When an Item is deleted, was not being triggered. Why could this possibly happen?

10 days ago

Power Automate – Information regarding disablement of the ‘How often do you want to look for new items?’ setting

On March 31, 2025, we temporarily disabled the ‘How often do you want to check for new items?’ setting in Power Automate. We plan ...

11 days ago

Power Automate: dateDifference function

The “dateDifference” function is a powerful tool for when you need to calculate the difference between two dates. It gives you a reliabl...

11 days ago

How to use the Azure AI Foundry connector in Power Automate

Today I had a look into the Azure AI Foundry connector in Power Automate. My findings on this connector are in the post below.

12 days ago

How to Programmatically Add Option Set Values in Dynamics 365 with Power Automate

In every Dynamics 365 or Power Apps implementation, it’s common to require fields where users select values from predefined lists—such as Job ...

12 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy