Kubernetes Engine (OKE) Metrics

Find out about the metrics emitted by Kubernetes Engine (OKE).

You can monitor the health, capacity, and performance of Kubernetes clusters managed by Kubernetes Engine using metrics , alarms , and notifications.

This topic describes the metrics emitted by Kubernetes Engine in the oci_oke metric namespace.

Resources: clusters, worker nodes

Overview of the Kubernetes Engine (OKE) Service Metrics

Kubernetes Engine metrics help you monitor Kubernetes clusters, along with node pools and individual worker nodes. You can use metrics data to diagnose and troubleshoot cluster and node pool issues.

While frequency varies by metric, default service metrics typically have a frequency of 60 seconds (that is, at least one data point posted per minute).

To view a default set of metrics charts in the Console, navigate to the cluster you're interested in, and then click Metrics. You also can use the Monitoring service to create custom queries. See Building Metric Queries.

Prerequisites

IAM policies: To monitor resources, you must be granted the required type of access in a policy  written by an administrator, whether you're using the Console or the REST API with an SDK, CLI, or other tool. The policy must give you access to both the monitoring services and the resources being monitored. If you try to perform an action and get a message that you don't have permission or are unauthorized, contact the administrator to find out what type of access you were granted and which compartment  you need to work in. For more information about user authorizations for monitoring, see IAM Policies.

For example, to observe the condition of nodes in a Kubernetes cluster, you must have been granted access using a policy statement similar to the following:

Allow group <group-name> to read metrics in <location>

Available Metrics: oci_oke

The metrics listed in the following tables are automatically available for any Kubernetes clusters you create. You do not need to enable monitoring on the resource to get these metrics.

Kubernetes Engine metrics include the following dimensions:

RESOURCEID
The OCID  of the resource to which the metric applies.
RESOURCEDISPLAYNAME
The name of the resource to which the metric applies.
RESPONSECODE
The response code sent from the Kubernetes API server.
RESPONSEGROUP
The response code group, based on the response code's first digit (for example, 2xx, 3xx, 4xx, 5xx).
CLUSTERID
The OCID  of the cluster to which the metric applies.
NODEPOOLID
The OCID  of the node pool to which the metric applies.
NODESTATE
The state of the compute instance hosting the worker node. For example, ACTIVE, CREATING, DELETING, DELETED, FAILED, UPDATING, INACTIVE.
NODECONDITION
The condition of the worker node, as indicated by the Kubernetes API server. For example, Ready, MemoryPressure, PIDPressure, DiskPressure, NetworkUnavailable.
AVAILABILITYDOMAIN
The availability domain where the compute instance resides.
FAULTDOMAIN
The fault domain where the compute instance resides.
Metric Metric Display Name Unit Description Dimensions
APIServerRequestCount API Server Requests count Number of requests received by the Kubernetes API Server.

resourceId

resourceDisplayName

APIServerResponseCount API Server Response Count count Number of different non-200 responses (that is, error responses) sent from the Kubernetes API server. resourceId

resourceDisplayName

responseCode

responseGroup

UnschedulablePods Unschedulable Pods count Number of pods that the Kubernetes scheduler is unable to schedule. Not available in clusters running versions of Kubernetes prior to version 1.15.x. resourceId

resourceDisplayName

NodeState Node State count Number of compute nodes in different states. resourceId

clusterId

nodepoolId

resourceDisplayName

nodeState

nodeCondition

availabilityDomain

faultDomain

KubernetesNodeCondition Kubernetes Node Condition count

Number of worker nodes in different conditions, as indicated by the Kubernetes API server.

resourceId

clusterId

nodepoolId

resourceDisplayName

nodeCondition

Using the Console