Metrics and dashboards

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 Grafana preinstalled.

  1. Get started by switching to the Administrator perspective:

    Administrator Perspective

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

    Monitoring Dashboards

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

    Grafana

  4. For the Namespace field, choose example-health which is the name of the project your app resides in.

  5. 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.

    Grafana also project

Prometheus and Alert Manager

Navigating back to the cluster console, you can also launch:

  • Prometheus - a monitoring system with an efficient time series database
  • Alertmanager - an extension of Prometheus focused on managing alerts

Prometheus

OpenShift provides a web interface to Prometheus, which enables you to run Prometheus Query Language (PromQL) queries and examine the metrics visualized on a plot. This functionality provides an extensive overview of the cluster state and enables you to troubleshoot problems. Take a look around, and try the Insert Example Query.

  1. The Metrics page is accessible by clicking Monitoring → Metrics.

    Metrics, Alerts and Dashboards

results matching ""

    No results matching ""