Kubernetes metrics

Cloud Monitoring supports the metric types from Google Kubernetes Engine listed on this page.

To use these metrics in charting or alerting, your Google Cloud project or AWS account must be associated with a Workspace. For more information, see Workspaces.
  • For a general explanation of the entries in the tables, including information about values like DELTA and GAUGE, see Metric types.

  • For information about the units used in the metric lists, see the unit field in the MetricDescriptor reference.

  • For information about statements of the form “Sampled every x seconds” and “After sampling, data is not visible for up to y seconds”, see Additional information: metadata.

  • For a set of complete, current lists of supported metric types, see Metrics list.

  • For pricing information, see Monitoring pricing.

Kubernetes metrics

Metrics from Google Kubernetes Engine.

The following list was last generated at 2020-10-23 03:48:52 UTC. For more information about this process, see About the lists.

kubernetes

Metrics for Google Kubernetes Engine. Some older versions of Google Kubernetes Engine use the container metrics. For information on viewing these metrics in the Kubernetes Engine Monitoring dashboard, go to Observing your GKE clusters. Launch stages of these metrics: BETA GA

The "metric type" strings in this table must be prefixed with kubernetes.io/. That prefix has been omitted from the entries in the table.

Metric type Launch stage
Display name
Kind, Type, Unit
Monitored resources
Description
Labels
container/accelerator/duty_cycle BETA
Accelerator duty cycle
GAUGEINT64%
k8s_container
Percent of time over the past sample period (10s) during which the accelerator was actively processing. Values are integers between 0 and 100. Sampled every 60 seconds.
make: Make of the accelerator (e.g. nvidia)
accelerator_id: ID of the accelerator.
model: Model of the accelerator (e.g. 'Tesla P100')
container/accelerator/memory_total BETA
Accelerator memory total
GAUGEINT64By
k8s_container
Total accelerator memory in bytes. Sampled every 60 seconds.
make: Make of the accelerator (e.g. nvidia)
accelerator_id: ID of the accelerator.
model: Model of the accelerator (e.g. 'Tesla P100')
container/accelerator/memory_used BETA
Accelerator memory used
GAUGEINT64By
k8s_container
Total accelerator memory allocated in bytes. Sampled every 60 seconds.
make: Make of the accelerator (e.g. nvidia)
accelerator_id: ID of the accelerator.
model: Model of the accelerator (e.g. 'Tesla P100')
container/accelerator/request BETA
Request accelerators
GAUGEINT64{devices}
k8s_container
Number of accelerator devices requested by the container. Sampled every 60 seconds.
resource_name: Name of the requested accelerator resource.
container/cpu/core_usage_time BETA
CPU usage time
CUMULATIVEDOUBLEs{CPU}
k8s_container
Cumulative CPU usage on all cores used by the container in seconds. Sampled every 60 seconds.
container/cpu/limit_cores BETA
Limit cores
GAUGEDOUBLE{cpu}
k8s_container
CPU cores limit of the container. Sampled every 60 seconds.
container/cpu/limit_utilization BETA
CPU limit utilization
GAUGEDOUBLE1
k8s_container
The fraction of the CPU limit that is currently in use on the instance. This value cannot exceed 1 as usage cannot exceed the limit. Sampled every 60 seconds. After sampling, data is not visible for up to 240 seconds.
container/cpu/request_cores BETA
Request cores
GAUGEDOUBLE{cpu}
k8s_container
Number of CPU cores requested by the container. Sampled every 60 seconds.
container/cpu/request_utilization BETA
CPU request utilization
GAUGEDOUBLE1
k8s_container
The fraction of the requested CPU that is currently in use on the instance. This value can be greater than 1 as usage can exceed the request. Sampled every 60 seconds. After sampling, data is not visible for up to 240 seconds.
container/ephemeral_storage/limit_bytes BETA
Ephemeral storage limit
GAUGEINT64By
k8s_container
Local ephemeral storage limit in bytes. Sampled every 60 seconds.
container/ephemeral_storage/request_bytes BETA
Ephemeral storage request
GAUGEINT64By
k8s_container
Local ephemeral storage request in bytes. Sampled every 60 seconds.
container/ephemeral_storage/used_bytes BETA
Ephemeral storage usage
GAUGEINT64By
k8s_container
Local ephemeral storage usage in bytes. Sampled every 60 seconds.
container/memory/limit_bytes BETA
Memory limit
GAUGEINT64By
k8s_container
Memory limit of the container in bytes. Sampled every 60 seconds.
container/memory/limit_utilization BETA
Memory limit utilization
GAUGEDOUBLE1
k8s_container
The fraction of the memory limit that is currently in use on the instance. This value cannot exceed 1 as usage cannot exceed the limit. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
memory_type: Either `evictable` or `non-evictable`. Evictable memory is memory that can be easily reclaimed by the kernel, while non-evictable memory cannot.
container/memory/page_fault_count BETA
Page faults
DELTAINT641
k8s_container
Number of page faults, broken down by type: major and minor.
fault_type: Fault type - either 'major' or 'minor', with the former indicating that the page had to be loaded from disk.
container/memory/request_bytes BETA
Memory request
GAUGEINT64By
k8s_container
Memory request of the container in bytes. Sampled every 60 seconds.
container/memory/request_utilization BETA
Memory request utilization
GAUGEDOUBLE1
k8s_container
The fraction of the requested memory that is currently in use on the instance. This value can be greater than 1 as usage can exceed the request. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
memory_type: Either `evictable` or `non-evictable`. Evictable memory is memory that can be easily reclaimed by the kernel, while non-evictable memory cannot.
container/memory/used_bytes BETA
Memory usage
GAUGEINT64By
k8s_container
Memory usage in bytes. Sampled every 60 seconds.
memory_type: Either `evictable` or `non-evictable`. Evictable memory is memory that can be easily reclaimed by the kernel, while non-evictable memory cannot.
container/restart_count BETA
Restart count
CUMULATIVEINT641
k8s_container
Number of times the container has restarted. Sampled every 60 seconds.
container/uptime BETA
Uptime
GAUGEDOUBLEs
k8s_container
Time in seconds that the container has been running. Sampled every 60 seconds.
node/cpu/allocatable_cores BETA
Allocatable cores
GAUGEDOUBLE{cpu}
k8s_node
Number of allocatable CPU cores on the node. Sampled every 60 seconds.
node/cpu/allocatable_utilization BETA
CPU allocatable utilization
GAUGEDOUBLE1
k8s_node
The fraction of the allocatable CPU that is currently in use on the instance. Sampled every 60 seconds. After sampling, data is not visible for up to 240 seconds.
node/cpu/core_usage_time BETA
CPU usage time
CUMULATIVEDOUBLEs{CPU}
k8s_node
Cumulative CPU usage on all cores used on the node in seconds. Sampled every 60 seconds.
node/cpu/total_cores BETA
Total cores
GAUGEDOUBLE{cpu}
k8s_node
Total number of CPU cores on the node. Sampled every 60 seconds.
node/ephemeral_storage/allocatable_bytes BETA
Allocatable ephemeral storage
GAUGEINT64By
k8s_node
Local ephemeral storage bytes allocatable on the node. Sampled every 60 seconds.
node/ephemeral_storage/inodes_free GA
Free inodes
GAUGEINT641
k8s_node
Free number of inodes on local ephemeral storage. Sampled every 60 seconds.
node/ephemeral_storage/inodes_total GA
Total inodes
GAUGEINT641
k8s_node
Total number of inodes on local ephemeral storage. Sampled every 60 seconds.
node/ephemeral_storage/total_bytes BETA
Total ephemeral storage
GAUGEINT64By
k8s_node
Total ephemeral storage bytes on the node. Sampled every 60 seconds.
node/ephemeral_storage/used_bytes BETA
Ephemeral storage usage
GAUGEINT64By
k8s_node
Local ephemeral storage bytes used by the node. Sampled every 60 seconds.
node/memory/allocatable_bytes BETA
Allocatable memory
GAUGEINT64By
k8s_node
Cumulative memory bytes used by the node. Sampled every 60 seconds.
node/memory/allocatable_utilization BETA
Memory allocatable utilization
GAUGEDOUBLE1
k8s_node
The fraction of the allocatable memory that is currently in use on the instance. This value cannot exceed 1 as usage cannot exceed allocatable memory bytes. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
memory_type: Either `evictable` or `non-evictable`. Evictable memory is memory that can be easily reclaimed by the kernel, while non-evictable memory cannot.
component: Name of the respective system daemon.
node/memory/total_bytes BETA
Total memory
GAUGEINT64By
k8s_node
Number of bytes of memory allocatable on the node. Sampled every 60 seconds.
node/memory/used_bytes BETA
Memory usage
GAUGEINT64By
k8s_node
Cumulative memory bytes used by the node. Sampled every 60 seconds.
memory_type: Either `evictable` or `non-evictable`. Evictable memory is memory that can be easily reclaimed by the kernel, while non-evictable memory cannot.
node/network/received_bytes_count BETA
Bytes received
CUMULATIVEINT64By
k8s_node
Cumulative number of bytes received by the node over the network. Sampled every 60 seconds.
node/network/sent_bytes_count BETA
Bytes transmitted
CUMULATIVEINT64By
k8s_node
Cumulative number of bytes transmitted by the node over the network. Sampled every 60 seconds.
node/pid_limit GA
PID capacity
GAUGEINT641
k8s_node
The max PID of OS on the node. Sampled every 60 seconds.
node/pid_used GA
PID usage
GAUGEINT641
k8s_node
The number of running process in the OS on the node. Sampled every 60 seconds.
node_daemon/cpu/core_usage_time BETA
CPU usage time
CUMULATIVEDOUBLEs{CPU}
k8s_node
Cumulative CPU usage on all cores used by the node level system daemon in seconds. Sampled every 60 seconds.
component: Name of the respective system daemon.
node_daemon/memory/used_bytes BETA
Memory usage
GAUGEINT64By
k8s_node
Memory usage by the system daemon in bytes. Sampled every 60 seconds.
component: Name of the respective system daemon.
memory_type: Either `evictable` or `non-evictable`. Evictable memory is memory that can be easily reclaimed by the kernel, while non-evictable memory cannot.
pod/network/received_bytes_count BETA
Bytes received
CUMULATIVEINT64By
k8s_pod
Cumulative number of bytes received by the pod over the network. Sampled every 60 seconds.
pod/network/sent_bytes_count BETA
Bytes transmitted
CUMULATIVEINT64By
k8s_pod
Cumulative number of bytes transmitted by the pod over the network. Sampled every 60 seconds.
pod/volume/total_bytes BETA
Volume capacity
GAUGEINT64By
k8s_pod
Total number of disk bytes available to the pod. Sampled every 60 seconds.
volume_name: The name of the volume (e.g. `/dev/sda1`).
pod/volume/used_bytes BETA
Volume usage
GAUGEINT64By
k8s_pod
Number of disk bytes used by the pod. Sampled every 60 seconds.
volume_name: The name of the volume (e.g. `/dev/sda1`).
pod/volume/utilization BETA
Volume utilization
GAUGEDOUBLE1
k8s_pod
The fraction of the volume that is currently being used by the instance. This value cannot be greater than 1 as usage cannot exceed the total available volume space. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
volume_name: The name of the volume (e.g. `/dev/sda1`).

nginx

Metrics exported from the NGINX Prometheus Exporter. Launch stages of these metrics: ALPHA

The "metric type" strings in this table must be prefixed with kubernetes.io/nginx/. That prefix has been omitted from the entries in the table.

Metric type Launch stage
Display name
Kind, Type, Unit
Monitored resources
Description
Labels
connections_accepted ALPHA
Nginx connections_accepted
CUMULATIVEINT64{connection}
k8s_container
Accepted client connections. Sampled every 60 seconds.
connections_active ALPHA
Nginx connections_active
GAUGEINT64{connection}
k8s_container
Active client connections. Sampled every 60 seconds.
connections_handled ALPHA
Nginx connections_handled
CUMULATIVEINT64{connection}
k8s_container
Handled client connections. Sampled every 60 seconds.
connections_reading ALPHA
Nginx connections_reading
GAUGEINT64{connection}
k8s_container
Connections where NGINX is reading the request header. Sampled every 60 seconds.
connections_waiting ALPHA
Nginx connections_waiting
GAUGEINT64{connection}
k8s_container
Idle client connections. Sampled every 60 seconds.
connections_writing ALPHA
Nginx connections_writing
GAUGEINT64{connection}
k8s_container
Connections where NGINX is writing the response back to the client. Sampled every 60 seconds.
http_requests_total ALPHA
Nginx http_requests_total
CUMULATIVEINT64{request}
k8s_container
Total http requests. Sampled every 60 seconds.
nginxexporter_build_info ALPHA
Nginx nginxexporter_build_info
GAUGEINT641
k8s_container
Exporter build information. Sampled every 60 seconds.
gitCommit: Commit hash of the build which can be abbreviated.
version: Build version.
up ALPHA
Nginx up
GAUGEINT641
k8s_container
Status of the last metric scrape. Indicates if the server is up or not. Sampled every 60 seconds.

Generated at 2020-10-23 03:48:52 UTC.