VM Monitoring with Advanced Cluster Management

In this module, we will demonstrate how to monitor virtual machines using Advanced Cluster Management (ACM) on a managed OpenShift cluster, utilizing bare metal instances running OpenShift Virtualization.

SAY:

In this demo, we will use ACM to monitor virtual machines on a managed cluster that includes bare metal instances running OpenShift Virtualization.

Overview of ACM and the Managed Cluster

DO:

  1. Navigate to the OpenShift Console.

  2. If you haven’t already, login:

    • User: {openshift_cluster_admin_username}

    • Password: {openshift_cluster_admin_password}

  3. Ensure All Clusters is selected at the top left to activate the ACM Console.

    ocp all clusters
  4. Click Home and then Overview to see the ACM dashboard.

  5. Select fleet view at the top left.

    ocp acm overview fleet

SAY:

In previous screenshot, you could see ACM, which provides a centralized view of our clusters. We can have several clusters across different providers and infrastructures.

DO:

  1. Go to Infrastructure and then Clusters at the left menu.

  2. Click on the local-cluster to view its details.

  3. Navigate to the Nodes tab.

SAY:

Here, we can see information about the our managed cluster, including its nodes.

This particular cluster runs on bare metal with Container-native Virtualization (CNV).

ocp acm managed cluster nodes cnv

DO:

  1. Switch to the managed cluster (local-cluster) view.

  2. Navigate to the Compute and Nodes section.

  3. Click on a node to view its details.

  4. Look for pods running in the openshift-cnv namespace.

SAY:

Within the managed cluster, we can see the bare metal node and the various pods in the openshift-cnv namespace. This is where all OpenShift Virtualization and host provisioning pods are running.

Existing Virtual Machines

DO:

  1. Click on the Virtualization and then VirtualMachines.

  2. Select "All Projects" at the top.

  3. Highlight the existing VMs.

    ocp virtualization vms

SAY:

The search engine within Red Hat Advanced Cluster Management for Kubernetes enables rapid troubleshooting and resource discovery across your Kubernetes clusters, including virtual machines, by providing a centralized and powerful search capability.

With this feature, users can quickly locate specific resources, such as pods, nodes, and VMs, by using intuitive search queries and filters.

This streamlined search functionality reduces the complexity of navigating large, multi-cluster environments, allowing administrators to efficiently identify and address issues, optimize resource usage, and maintain a robust and well-managed Kubernetes infrastructure.

Let’s showcase how the Search engine operates in ACM.

Using ACM for Monitoring and Troubleshooting

DO:

  1. Navigate to the Search screen in ACM.

  2. Setup the following filters in your search kind:VirtualMachine.

  3. You should see the Virtual Machines, including those you imported in the earlier steps (if applicable).

  4. Let’s navigate deeper. Click on the winweb01-placeholder_guid.

    acm search vms
    acm search vms1

    Notice all of the details of the Virtual Machine, here we can see when it was created, what Labels are appiled, what features of this virtual machine are enabled. If you navigate to the YAML tab you can see all of the details of the machine as code, you can use this to deploy VMs as code from within ACM, making it super easy to scale out your environment.

    acm search vms2
  5. Navigate to the Related Resources tab to showcase all of the resources that are associated with the winweb01-placeholder_guid virtual machine, this allows for easy troubleshooting when issues come up.

    acm search vms3

    Feel free to explore around the search engine with other qureies, they are all simple text based.

SAY:

ACM provides powerful search capabilities to look at specific VM resources, related resources, and overall cluster health. This is especially useful for monitoring and troubleshooting, now let’s dive deeper into Observability and showcase how we can monitor and alert on resources as needed.

DO:

  1. Get back to ACM, in Infrastructure and Clusters. Click on the Grafana link.

    ocp acm grafana link
    observability Overview
  2. Click on Top 50 Max Latency API Server title followed by View.

    ocp acm grafana top50
  3. Click on local-cluster to open the dashboard.

    acm observe dash

    Notice the amount of information thats avaiable here from our cluster APIs, you can see what the top Requests are, and how many resources they consumed, by CPU, memory and much more. You can configure alerts from Grafana to be forward to any system that you might currently use for further monitoring and troubleshooting.

  4. Let’s have a look at the workloads inside our cluster like Virtual Machines, let’s Navigate to the side bar and click on Browse

    acm observe dash1
  5. Once there notice all of the out of the box dashboards that are available. Custom dashboards can also be created and configure. Let’s dive deeper into these dashboards and select the ACM - OpenShift Virtualization Overview

    acm observe dash2
  6. This Dashboard showcases the Health of the OpenShift Virtualization Operator - kubevirt - and what resources - virtual machines - are available and and what the state is.

    acm observe dash3

    Feel free to explore around the multiple Grafana dashboards to familiarize yourself with whats included out of the box.

SAY:

The Observability feature in Red Hat Advanced Cluster Management for Kubernetes enhances cluster resource management by providing comprehensive visibility into the health, performance, and utilization of cluster resources.

By integrating with Grafana, it offers real-time monitoring and detailed dashboards that display key metrics for nodes, pods, and applications.

This allows administrators to identify and address performance bottlenecks, optimize resource allocation, and ensure efficient operation of the clusters.

The ability to set up alerts and analyze historical data further aids in proactive management, enabling better planning and timely resolution of potential issues, ultimately leading to a more resilient and well-optimized Kubernetes environment.

Summary

SAY:

In this module, we demonstrated the centralized view and management capabilities of ACM, observed the deployment and monitoring of VMs, and highlighted the observability features that ensure the health and performance of our virtual machines.

By leveraging ACM, we can efficiently manage and scale our VM deployments across different infrastructures, ensuring consistency and reducing the potential for human error.

Please delete this demo from the Red Hat Demo Platform once you have completed practicing or delivering it to your customer.