﻿---
title: Kubernetes state_container metricset
description: This is the state_container metricset of the Kubernetes module. For a description of each field in the metricset, see the exported fields section. Here...
url: https://www.elastic.co/elastic/docs-builder/docs/2651/reference/beats/metricbeat/metricbeat-metricset-kubernetes-state_container
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Stack: Generally available
---

# Kubernetes state_container metricset
This is the `state_container` metricset of the Kubernetes module.

## Fields

For a description of each field in the metricset, see the [exported fields](https://www.elastic.co/elastic/docs-builder/docs/2651/reference/beats/metricbeat/exported-fields-kubernetes) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp": "2019-03-01T08:05:34.853Z",
    "container": {
        "id": "fed1a0f0adeb312c82caea61cf5b46f0a6d81bd4ae891dad54f88d99a822fb3d",
        "image": {
            "name": "docker.io/kindest/kindnetd:v20241212-9f82dd49"
        },
        "runtime": "containerd"
    },
    "event": {
        "dataset": "kubernetes.container",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "container": {
            "cpu": {
                "limit": {
                    "cores": 0.1
                },
                "request": {
                    "cores": 0.1
                }
            },
            "id": "fed1a0f0adeb312c82caea61cf5b46f0a6d81bd4ae891dad54f88d99a822fb3d",
            "memory": {
                "limit": {
                    "bytes": 52428800
                },
                "request": {
                    "bytes": 52428800
                }
            },
            "name": "kindnet-cni",
            "status": {
                "last_terminated_exitcode": 255,
                "last_terminated_reason": "Unknown",
                "last_terminated_timestamp": 1744109218,
                "phase": "running",
                "ready": true,
                "restarts": 1
            }
        },
        "namespace": "kube-system",
        "node": {
            "name": "kind-control-plane"
        },
        "pod": {
            "name": "kindnet-gzkxz"
        }
    },
    "metricset": {
        "name": "state_container",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}
```