Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

Enabling OpenShift Metrics and Logging on Azure

In this lab you will be enabling and deploying both the metrics and the logging components in OpenShift on Azure. This will allow metrics to show up in your web console for your applications as well as allow for log aggrregation for troubleshooting purposes.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 14, 2025
Duration
3h 30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Configure Cloud Shell

    Set up Cloud Shell by clicking the Cloud Shell button in the top-right corner of the screen:

    "Azure Cloud Shell"

    When creating the Bash Cloud Shell File share, use the existing Resource Group and the existing Storage Account (In West US).

  2. Challenge

    Download SSH Keys for the Lab

    You will need to pull down the SSH keys to be able to connect to VMs. First, make the .ssh directory, if it isn't already there, with the mkdir command.

    Then, cd into the .ssh directory.

    Next, use wget to pull down the SSH keys using these links:

    https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/ssh/id_rsa

    https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/ssh/id_rsa.pub

    Change the permission to the files to 600.

  3. Challenge

    Run the Lab Prep Subscriptions

    We will need use SSH to connect to each VM and run a prep script.

    After we use SSH to connect to a VM, we will first need to install wget.

    Next, we will need to download the associated script for the node found in the Git repo for the lab. The link is: https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/scripts/

    • For the bastionVM-0 it would be bastionhostPrep.sh

    • For the masterVM-0 it would be masterPrep.sh

    • For the infraVM-0 it would be infraPrep.sh

    • For the appnodeVM-0 it would be nodePrep.sh

    Once the download completes, we will need to make the script executable.

    Finally, we must run the script. Ensure that sudo is used or the script will fail.

  4. Challenge

    Install OpenShift

    Use Ansible to run the prerequisites.yml and the deploy_cluster.yml playbooks to install OpenShift.

  5. Challenge

    Enable Metrics and Logging

    You will need to add the following to the /etc/ansible/hosts file:

    # metrics
    openshift_metrics_install_metrics=True
    openshift_metrics_hawkular_hostname=hawlular-metrics.apps.okd.infra.example.xip.io
    openshift_metrics_cassandra_storage_type=dynamic
    openshift_metrics_storage_volume_size=1Gi
    openshift_metrics_hawkular_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_metrics_cassandra_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_metrics_heapster_nodeselector={"node-role.kubernetes.io/infra": "true"}
    
    # logging
    openshift_logging_install_logging=True
    openshift_logging_es_pvc_dynamic=true
    openshift_logging_storage_volume_size=1Gi
    openshift_logging_kibana_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_logging_curator_nodeselector={"node-role.kubernetes.io/infra": "true"}
    openshift_logging_es_nodeselector={"node-role.kubernetes.io/infra": "true"}
    

    Then, you will need to run the config.yml playbook for both openshift-metrics and openshift-logging.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight