How does Site24x7 Kubernetes monitor calculate the memory and CPU utilization for pods?

How does Site24x7 Kubernetes monitor calculate the memory and CPU utilization for pods?

Site24x7 Kubernetes Monitor uses the kubelet API and kube-state-metrics API to collect the metrics related to memory and CPU utilization.

For memory utilization, the calculation works as follows:

Working set size (WSS) memory usage

---------------------------------------------       x 100 = Memory utilization (%)

              Memory limit of pod

 

Example:

WSS memory usage = 150MiB

Memory limit set for that pod = 256MiB

Memory utilization by percentage = 150 / 256 x 100 = 58.5%

 

For CPU utilization, the calculation works as follows:

   CPU usage

--------------------        x 100 = CPU utilization (%)

CPU limit of pod

Example:

CPU usage = 200 millicores

CPU limit of that pod = 400 millicores

CPU utilization in percentage = 200 / 400 x 100 = 50%

    • Related Articles

    • Troubleshooting false positive alerts in monitoring

      Problem False positive alerts are being generated. Possible cause The monitoring system is down in some locations. The Website monitor might be configured for one location, such as Seattle, but may appear down when accessed from another location, ...
    • Amendments to Site24x7 Monitor Names

      We've recently renamed a few of our Monitors to help keep in sync with the current IT and DevOps trends. The new monitor names are designed to correctly resonate with the IT & DevOps crowd. We've made necessary changes in the Web client, Help ...
    • How does Site24x7 always ensure the availability of its location agents during monitoring?

      Site24x7 uses a preferred location recheck logic in the back-end to ensure the availability of all monitoring locations. This logic is only applied when you've disabled the option "Restrict monitoring within selected locations" in the Add or Edit ...
    • How to uninstall the Site24x7 Windows Server Monitoring Agent

      Method 1: To uninstall the Site24x7 Windows Server Monitoring Agent, click the link below: https://staticdownloads.site24x7.com/server/Site24x7WindowsAgentUninstall.zip Unzip and execute the Uninstall.bat file in the Command Prompt as an ...
    • No data for service and process in Windows server monitor

      If you see "No Data" for process and service metrics (such as CPU or memory usage of monitored services) in the Site24x7 Windows server monitor user interface, follow the troubleshooting steps below. Run PowerShell Commands Open PowerShell as ...