All Products
Search
Document Center

Container Service for Kubernetes:Ingress Dashboard

Last Updated:Apr 26, 2024

Ingress controllers of Container Service for Kubernetes (ACK) allow you to stream all HTTP request log to standard outputs. ACK is also integrated with Simple Log Service. You can create dashboards to monitor and analyze log data. This topic describes how to use Ingress Dashboard with Application Real-Time Monitoring Service (ARMS) to monitor applications.

Prerequisites

You must install the Simple Log Service component before you can use Ingress Dashboard to monitor applications. You can use the following methods to install the component:

  • When you create an ACK cluster, select Enable Simple Log Service, Install Ingress Controllers, and Create Ingress Dashboard.

  • To install the component for an existing ACK cluster, go to the Add-ons page. For more information, see View container logs in the Log Service console.

Step 1: View the Ingress access log on dashboards

  1. Log on to the Log Service console.
  2. In the Projects section, click the name of the project that you specified when you created the ACK cluster. The details page of the project appears. By default, a project that is named in the format of k8s-log-{cluster-id} is created for the ACK cluster.
  3. In the left-side navigation pane, click the image icon. View the reports of NGINX Ingresses on the Dashboard list.

    image

    Ingress Dashboard contains five preset charts: Ingress Overview, Ingress Exceptions Center, Ingress Access Center, Ingress Monitoring Center for Blue/Green Deployment, and Ingress Monitoring Center. The following section introduces the Ingress Overview and Ingress Monitoring Center for Blue/Green Deployment charts. For more information about other preset charts, see Analyze and monitor the access log of nginx-ingress-controller.

    • Ingress Overview

      The Ingress Overview dashboard displays the data of a website that is monitored by nginx-ingress. You can view the following information:

      • Website data of the last 24 hours, including the number of page views (PVs), the number of unique visitors (UVs), inbound and outbound traffic, the average latency, the proportion of mobile users, and the proportions of 5xx errors and 404 errors.
      • Website data of the last one minute, including the number of PVs, the number of UVs, the success rate of requests, the proportion of 5xx errors, the average latency, the P95 latency, and the P99 latency.
      • Detailed information about requests in the last 24 hours, including the PV trend (compared with the PV trend in the last seven days), regional distribution of request sources, the top 10 source areas and cities, the proportion of mobile users, and the proportions of Android users and iOS users.
      • Top 10 URLs in the last one hour, including the 10 URLs of the highest PVs, the 10 URLs of the highest latencies, the 10 URLs that return the most 5xx errors, and the 10 URLs that return the most 404 errors.
    • Ingress Monitoring Center for Blue/Green Deployment

      The Ingress monitoring center for blue/green deployment dashboard displays the real-time status of a service version release and compares the specified service versions. This allows you to identify exceptions and roll back the service at the earliest opportunity. You must set ServiceA and ServiceB for monitoring and comparison. The dashboard displays the following dynamic monitoring data of each service: the number of PVs, the proportion of 5xx errors, the success rate of requests, the average latency, the P95, P99, and P9999 latencies, and the traffic data.

Step 2: Enable ARMS for a Java application

For more information about how to enable ARMS for Java applications, see Monitor applications.

Step 3: Create an Ingress for the application

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click the name of the cluster that you want to manage and choose Network > Ingresses in the left-side navigation pane.

  3. On the Ingresses page, click Create Ingress. Configure the Ingress and click OK.

    For more information about how to configure an Ingress, see Create an NGINX Ingress.

Step 4: Use Ingress Dashboard with ARMS

  1. Log on to the Log Service console.
  2. In the Projects section, click the name of the project that you specified when you created the ACK cluster. The details page of the project appears. By default, a project that is named in the format of k8s-log-{cluster-id} is created for the ACK cluster.
  3. In the left-side navigation pane, click the image icon. Click Ingress Overview V1.2 in the Dashboard list to obtain the required information.

    For example, you can find the Top 10 Request URLs by Latency section and check the URL(ARMS Troubleshooting) field to view the top 10 request URLs sorted by latency. You can click the URL to go to the ARMS trace query page of the corresponding Service. You can view the trace details of the Service in the ARMS console.