openshift101
1.0.0
1.0.0
  • Introduction
  • Getting Started
    • Create an IBM Cloud account / Access an OpenShift cluster
    • Accessing the IBM Cloud Shell
  • Workshop
    • Exercise 1: Deploy a Node application with Source-to-Image
    • Exercise 2: Logging and monitoring
    • Exercise 3: Metrics and dashboards
    • Exercise 4: Scaling the application
    • Exercise 5: Health checks
    • Exercise 6: Deploy a Node application with Build Config (CLI version)
  • Alternates
    • Exercise 1: Deploy a Java application with a Docker Image
    • Exercise 6: Deploy a Java application with Build Config (CLI version)
  • Resources
    • FAQ
    • A General Docker Tutorial
    • Kubernetes Overview
    • Setup CLI Access for the cluster
    • Certification on CognitiveClass.ai
    • IBM Developer
    • Docs: Red Hat OpenShift on IBM Cloud
  • Survey
    • Tell us how we did
Powered by GitBook
On this page
  • Grafana
  • Prometheus and Alert Manager
  • Prometheus
  • Alertmanager

Was this helpful?

  1. Workshop

Exercise 3: Metrics and dashboards

PreviousExercise 2: Logging and monitoringNextExercise 4: Scaling the application

Last updated 4 years ago

Was this helpful?

In this exercise, we'll explore the third-party monitoring and metrics dashboards that are installed for free with OpenShift!

Grafana

Red Hat OpenShift on IBM Cloud comes with preinstalled. Get started by switching to the Administrator view:

Then Navigate to Monitoring > Dashboards in the left-hand bar. Then click on Grafana UI next to the title. You'll be asked to login with OpenShift and then click through some permissions.

This will open up another proxy page, click Log in with OpenShift.

Next, it will ask you for Authorize Access, take the default which is both checkboxes, and click Allow selected permissions.

You should then see your Grafana dashboard. Hit Home on the top left, and choose Kubernetes / Compute Resources / Namespace (Pods).

You should be able to see the CPU and Memory usage for your application. In production environments, this is helpful for identifying the average amount of CPU or Memory your application uses, especially as it can fluctuate through the day. We'll use this information in the next exercise to set up auto-scaling for our pods.

Prometheus and Alert Manager

Navigating back to the cluster console, you can also launch Alerting and Metrics UIs

Prometheus

Alertmanager

Under namespace, choose the name of the project you created in - the same one that your application is running inside.

- a monitoring system with an efficient time series database

- an extension of Prometheus focused on managing alerts

Prometheus
Alertmanager
Grafana
Step 1
Administrator
Monitoring Dashboards
Grafana
Grafana also project
Metrics, Alerts and Dashboards
Prometheus
Alert Manager