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": "054b424625a7c22c210e3fe0aae55069d4f3e18ce8bc802a9a96ce87bb7a2483",
        "image": {
            "name": "docker.io/library/busybox:latest"
        },
        "runtime": "containerd"
    },
    "event": {
        "dataset": "kubernetes.container",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "container": {
            "id": "054b424625a7c22c210e3fe0aae55069d4f3e18ce8bc802a9a96ce87bb7a2483",
            "name": "hello",
            "status": {
                "phase": "terminated",
                "ready": false,
                "reason": "Completed",
                "restarts": 0
            }
        },
        "namespace": "default",
        "node": {
            "name": "kind-control-plane"
        },
        "pod": {
            "name": "hello-28564555-zdfjz"
        }
    },
    "metricset": {
        "name": "state_container",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}