Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon

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

Path Info

Clock icon Intermediate
Clock icon 3h 30m
Clock icon Sep 27, 2019

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:

    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:

    • For the bastionVM-0 it would be

    • For the masterVM-0 it would be

    • For the infraVM-0 it would be

    • For the appnodeVM-0 it would be

    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_hawkular_nodeselector={"": "true"}
    openshift_metrics_cassandra_nodeselector={"": "true"}
    openshift_metrics_heapster_nodeselector={"": "true"}
    # logging
    openshift_logging_kibana_nodeselector={"": "true"}
    openshift_logging_curator_nodeselector={"": "true"}
    openshift_logging_es_nodeselector={"": "true"}

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

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans