Loading

Kubernetes state_container metricset

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 is an example document generated by this metricset:

{
    "@timestamp": "2019-03-01T08:05:34.853Z",
    "container": {
        "id": "4a484cd2d02f9510aad97bd9c95f6a142177cfd9685f7df7eb14440136cd6e31",
        "image": {
            "name": "registry.k8s.io/coredns/coredns:v1.11.3"
        },
        "runtime": "containerd"
    },
    "event": {
        "dataset": "kubernetes.container",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "container": {
            "cpu": {
                "request": {
                    "cores": 0.1
                }
            },
            "id": "4a484cd2d02f9510aad97bd9c95f6a142177cfd9685f7df7eb14440136cd6e31",
            "memory": {
                "limit": {
                    "bytes": 178257920
                },
                "request": {
                    "bytes": 73400320
                }
            },
            "name": "coredns",
            "status": {
                "last_terminated_exitcode": 255,
                "last_terminated_reason": "Unknown",
                "last_terminated_timestamp": 1744109218,
                "phase": "running",
                "ready": true,
                "restarts": 1
            },
            "type": "container"
        },
        "namespace": "kube-system",
        "node": {
            "name": "kind-control-plane"
        },
        "pod": {
            "name": "coredns-668d6bf9bc-54zxr"
        }
    },
    "metricset": {
        "name": "state_container",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}