Monitoring the health and logs of the application

When we created the cluster, Azure Monitor for containers was enabled. This monitoring feature provides health metrics for both the AKS cluster and the pods running on the cluster. This is displayed in the Azure portal and consists of information regarding the uptime, current status, and resource usage for the Azure vote pods. Let's take a look:

  1. Navigate to the Azure portal by opening https://portal.azure.com.
  2. Go to the overview page of PacktAKSCluster.
  3. Under Monitoring, select Insights. Then, in the top menu, choose + Add Filter:

Add a new filter
  1. Select Namespace as the property. Then, choose <All but kube-system>
  1. Then, from the top menu (under the filters), select Containers:

Containers view
  1. To see the logs for the azure-vote-front pod, select View container logs from the drop-down of the containers list. These logs include the stdout and stderr streams from the container:

Opening the container logs
  1. This will result in the following output:

Container logs

This concludes this section and this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset