You can use the OpenShift Container Platform web console to monitor metrics related to the health status of your sandboxed workloads and nodes.
OpenShift sandboxed containers has a pre-configured dashboard available in the web console, and administrators can also access and query raw metrics through Prometheus.
OpenShift sandboxed containers metrics enable administrators to monitor how their sandboxed containers are running. You can query for these metrics in Metrics UI in the web console.
OpenShift sandboxed containers metrics are collected for the following categories:
Kata agent metrics display information about the kata agent process running in the VM embedded in your sandboxed containers. These metrics include data from /proc/<pid>/[io, stat, status]
.
Kata guest OS metrics display data from the guest OS running in your sandboxed containers. These metrics include data from /proc/[stats, diskstats, meminfo, vmstats]
and /proc/net/dev
.
Hypervisor metrics display data regarding the hypervisor running the VM embedded in your sandboxed containers. These metrics mainly include data from /proc/<pid>/[io, stat, status]
.
Kata monitor is the process that gathers metric data and makes it available to Prometheus. The kata monitor metrics display detailed information about the resource usage of the kata-monitor process itself. These metrics also include counters from Prometheus data collection.
Kata containerd shim v2 metrics display detailed information about the kata shim process. These metrics include data from /proc/<pid>/[io, stat, status]
and detailed resource usage metrics.
You can access the metrics for OpenShift sandboxed containers in the Metrics page in the web console.
You have OpenShift Container Platform 4.11 installed.
You have OpenShift sandboxed containers installed.
You have access to the cluster as a user with the cluster-admin
role or with view permissions for all projects.
From the Administrator perspective in the web console, navigate to Observe → Metrics.
In the input field, enter the query for the metric you want to observe.
All kata-related metrics begin with kata. Typing kata will display a list with all of the available kata metrics.
The metrics from your query are visualized on the page.
For more information about creating PromQL queries to view metrics, see Querying metrics.
You can access the OpenShift sandboxed containers dashboard in the Dashboards page in the web console.
You have OpenShift Container Platform 4.11 installed.
You have OpenShift sandboxed containers installed.
You have access to the cluster as a user with the cluster-admin
role or with view permissions for all projects.
From the Administrator perspective in the web console, navigate to Observe → Dashboards.
From the Dashboard drop-down list, select the Sandboxed Containers dashboard.
Optional: Select a time range for the graphs in the Time Range list.
Select a pre-defined time period.
Set a custom time range by selecting Custom time range in the Time Range list.
Define the date and time range for the data you want to view.
Click Save to save the custom time range.
Optional: Select a Refresh Interval.
The dashboard appears on the page with the following metrics from the Kata guest OS category:
Displays the total number of sandboxed containers running on your cluster.
Displays the CPU usage for each individual sandboxed container.
Displays the memory usage for each individual sandboxed container.
Hover over each of the graphs within a dashboard to display detailed information about specific items.
For more information about gathering data for support, see Gathering data about your cluster.