Lab 13.3 - Alerting and Metrics

1. Review the metrics

oc get route -n openshift-monitoring
curl https://alertmanager-main-openshift-monitoring.apps.openshift.podX.io/metrics | more

2. Login OKD web console using the admin user

3. Click Monitoring → Alerting. Notice all alerts with different severity

4. Click Alerting rules. Notice that there are active and inactive alerts

5. Select TargetDown alert, and review the detail alerting

6. Click Monitoring → Alerting. Select Alertmanager UI link

7. On an alert manager UI page, click the status tab. Notice the status is ready

8. Click Monitoring → Metrics, select namespace:container_memory_usage_bytes:sum.

Click Run Queries to view the results in the OKD web console

9. To show average memory in the console-apps namespace, type the following Prometheus query in the expression input field:

avg(container_memory_working_set_bytes{namespace='console-apps'}) BY (pod)

Click Run Queries to view the results in the OKD web console.

Daftar Materi