Project: Netdata (Observability and Analysis / Observability)
File: kubernetes_containers.md

<!--startmeta customediturl: "https://github.com/netdata/netdata/edit/master/src/collectors/cgroups.plugin/integrations/kubernetes_containers.md" meta_yaml: "https://github.com/netdata/netdata/edit/master/src/collectors/cgroups.plugin/metadata.yaml" sidebar_label: "Kubernetes Containers" learn_status: "Published" learnrelpath: "Collecting Metrics/Kubernetes" most_popular: True message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE" endmeta--> <img src="https://netdata.cloud/img/kubernetes.svg" width="150"/> Plugin: cgroups.plugin Module: /sys/fs/cgroup <img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" /> Monitor Containers for performance, resource usage, and health status. This collector is supported on all platforms. This collector supports collecting metrics from multiple instances of this integration, including remote instances. This integration doesn't support auto-detection. The default configuration for this integration does not impose any limits on data collection. The default configuration for this integration is not expected to impose a significant performance impact on the system. Metrics grouped by scope. The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels. These metrics refer to the Pod container. Labels: | Label | Description | |:--|:-| | k8snodename | Node name. The value of pod.spec.nodeName. | | k8snamespace | Namespace name. The value of pod.metadata.namespace_. | | k8scontrollerkind | Controller kind (ReplicaSet, DaemonSet, StatefulSet, Job, etc.). The value of pod.OwnerReferences.Controller.Kind. | | k8scontrollername | Controller name.The value of pod.OwnerReferences.Controller.Name. | | k8spodname | Pod name. The value of pod.metadata.name. | | k8scontainername | Container name. The value of pod.spec.containers.name. | | k8s_kind | Instance kind: "pod" or "container". | | k8sqosclass | QoS class (guaranteed, burstable, besteffort). | | k8sclusterid | Cluster ID. The value of kube-system namespace namespace.metadata.uid. | Metrics: | Metric | Dimensions | Unit | |:|:-|:-| | k8s.cgroup.cpu_limit | used | percentage | | k8s.cgroup.cpu | user, system | percentage | | k8s.cgroup.cpupercore | a dimension per core | percentage | | k8s.cgroup.throttled | throttled | percentage | | k8s.cgroup.throttled_duration | duration | ms | | k8s.cgroup.cpu_shares | shares | shares | | k8s.cgroup.mem | cache, rss, swap, rsshuge, mappedfile | MiB | | k8s.cgroup.writeback | dirty, writeback | MiB | | k8s.cgroup.mem_activity | in, out | MiB/s | | k8s.cgroup.pgfaults | pgfault, swap | MiB/s | | k8s.cgroup.mem_usage | ram, swap | MiB | | k8s.cgroup.memusagelimit | available, used | MiB | | k8s.cgroup.mem_utilization | utilization | percentage | | k8s.cgroup.mem_failcnt | failures | count | | k8s.cgroup.io | read, write | KiB/s | | k8s.cgroup.serviced_ops | read, write | operations/s | | k8s.cgroup.throttle_io | read, write | KiB/s | | k8s.cgroup.throttleservicedops | read, write | operations/s | | k8s.cgroup.queued_ops | read, write | operations | | k8s.cgroup.merged_ops | read, write | operations/s | | k8s.cgroup.cpusomepressure | some10, some60, some300 | percentage | | k8s.cgroup.cpusomepressurestalltime | time | ms | |

| some10, some60, some300 | percentage | | k8s.cgroup.cpufullpressurestalltime | time | ms | | k8s.cgroup.memorysomepressure | some10, some60, some300 | percentage | | k8s.cgroup.memorysomepressurestalltime | time | ms | | k8s.cgroup.memoryfullpressure | some10, some60, some300 | percentage | | k8s.cgroup.memoryfullpressurestalltime | time | ms | | k8s.cgroup.iosomepressure | some10, some60, some300 | percentage | | k8s.cgroup.iosomepressurestalltime | time | ms | | k8s.cgroup.iofullpressure | some10, some60, some300 | percentage | | k8s.cgroup.iofullpressurestalltime | time | ms | | k8s.cgroup.pids_current | pids | pids | These metrics refer to the Pod container network interface. Labels: | Label | Description | |:--|:-| | device | The name of the host network interface linked to the container's network interface. | | container_device | Container network interface name. | | interface_type | Network interface type. Always "virtual" for the containers. | | k8snodename | Node name. The value of pod.spec.nodeName. | | k8snamespace | Namespace name. The value of pod.metadata.namespace_. | | k8scontrollerkind | Controller kind (ReplicaSet, DaemonSet, StatefulSet, Job, etc.). The value of pod.OwnerReferences.Controller.Kind. | | k8scontrollername | Controller name.The value of pod.OwnerReferences.Controller.Name. | | k8spodname | Pod name. The value of pod.metadata.name. | | k8scontainername | Container name. The value of pod.spec.containers.name. | | k8s_kind | Instance kind: "pod" or "container". | | k8sqosclass | QoS class (guaranteed, burstable, besteffort). | | k8sclusterid | Cluster ID. The value of kube-system namespace namespace.metadata.uid. | Metrics: | Metric | Dimensions | Unit | |:|:-|:-| | k8s.cgroup.net_net | received, sent | kilobits/s | | k8s.cgroup.net_packets | received, sent, multicast | pps | | k8s.cgroup.net_errors | inbound, outbound | errors/s | | k8s.cgroup.net_drops | inbound, outbound | errors/s | | k8s.cgroup.net_fifo | receive, transmit | errors/s | | k8s.cgroup.net_compressed | receive, sent | pps | | k8s.cgroup.net_events | frames, collisions, carrier | events/s | | k8s.cgroup.net_operstate | up, down, notpresent, lowerlayerdown, testing, dormant, unknown | state | | k8s.cgroup.net_carrier | up, down | state | | k8s.cgroup.net_mtu | mtu | octets | The following alerts are available: | Alert name | On metric | Description | |:|:-|:| | | k8s.cgroup.cpu_limit | average cgroup CPU utilization over the last 10 minutes | | | k8s.cgroup.mem_usage | cgroup memory utilization | | | k8s.cgroup.net_packets | average number of packets received by the network interface ${label:device} over the last minute | | | k8s.cgroup.net_packets | ratio of average number of received packets for the network interface ${label:device} over the last 10 seconds, compared to the rate over the last minute | No action required. There is no configuration file. There are no configuration options. There are no configuration examples.