Activity: Explore dashboards and metrics

Module 3

Red Hat Connectivity Link provides a variety of starting points for monitoring your installation in the Kuadrant upstream project (examples from kuadrant.io) folder. These dashboards and alerts are ready-to-use and easily customizable to fit your environment.

If an image is too tiny, click to view it full screen.

Login to Grafana

  1. Navigate to the Grafana dashboards by clicking here

    grafana openshift login

  2. Click on the Log in with OpenShift button, and log in with username admin and password {ocp_cluster_openshift_cluster_admin_password} when prompted.

    grafana openshift login cred

  3. Click Allow selected permissions button

    grafana allow permissions

Access the dashboards

  1. From the left-hand navigation, access the Dashboards menu.

    grafana dashboards list
  2. Click on the monitoring folder to view the preloaded dashboards.

    Click to view the image in full screen.

    grafana monitoring dashboards

Explore persona-based Dashboards

  1. Click on the App Developer Dashboard link to view the data. You will be presented with the metrics for both echo-api and travel-agency APIs.

    app dashboard no data
  2. For the sake of this workshop, let us create some traffic to the echo-api. Run the following command on the upper terminal. You will see a combination of 403 and 429 errors in the terminal.

    for i in {1..1000}; do curl -k -w "%{http_code}" https://echo.travels.{ocp_cluster_workshop_main_domain}; done
  3. Access the Grafana dashboard tab again, and click the refresh button as shown in the screenshot below.

    You may need to refresh a couple of times for the metrics to appear in the Grafana dashboard.

    Notice that 429 and 403 requests, as well as the total requests, are available in the different sections of the dashboard.

    app dashboard with data
  4. Next, click the Platform Engineer Dashboard link on the top left of the page.

    1. View Gateway, HTTPRoute, and its policies

      pe dashboard gw

      Don’t see the HTTPRoute’s policies? You might need to restart the kube-state-metrics pod.

      • Run this command in the top-right terminal to nudge the metrics a bit.

        oc rollout restart deployment/kube-state-metrics-kuadrant -n monitoring
      • Refresh the dashboard using the refresh button on top-right of the browser, and voila, everything is alright in our dashboard world.

    2. View details of Total requests, latency, and CPU and memory usage

      pe dashboard requests
  5. Finally, click the Business User Dashboard link at the top left of the page. This dashboard shows data such as traffic summary and historical request comparison, which are more relevant to business users.

    biz dashboard with data