Kubernetes state_container metricset

edit

Kubernetes state_container metricset

edit

This is the state_container metricset of the Kubernetes module.

Fields

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": "db273ae4a6486d1e52dda314a8d0ce84d9014ce5e0f9c94812119a73d579e2fc",
        "image": {
            "name": "docker.io/kindest/kindnetd:v20221004-44d545d1"
        },
        "runtime": "containerd"
    },
    "event": {
        "dataset": "kubernetes.container",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "container": {
            "cpu": {
                "limit": {
                    "cores": 0.1
                },
                "request": {
                    "cores": 0.1
                }
            },
            "id": "db273ae4a6486d1e52dda314a8d0ce84d9014ce5e0f9c94812119a73d579e2fc",
            "memory": {
                "limit": {
                    "bytes": 52428800
                },
                "request": {
                    "bytes": 52428800
                }
            },
            "name": "kindnet-cni",
            "status": {
                "phase": "running",
                "ready": true,
                "restarts": 0
            }
        },
        "namespace": "kube-system",
        "node": {
            "name": "kind-control-plane"
        },
        "pod": {
            "name": "kindnet-4tnzw"
        }
    },
    "metricset": {
        "name": "state_container",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}