openshift101
workshop-openshift-3.11
workshop-openshift-3.11
  • Introduction
  • Getting Started
    • Create an IBM Cloud account / Access an OpenShift cluster
    • Accessing the IBM Cloud Shell
    • A General Docker Tutorial
  • 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
    • 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 5 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 Cluster Console view:

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

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

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:

Prometheus

Alertmanager

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

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