Kubernetes state_container 指标集

编辑

Kubernetes state_container 指标集编辑

这是 Kubernetes 模块的 state_container 指标集。

字段

有关指标集中每个字段的描述,请参见 导出字段 部分。

以下是由此指标集生成的示例文档

{
    "@timestamp": "2019-03-01T08:05:34.853Z",
    "container": {
        "id": "eb97eb439a6c71ec0d24241d23c87b019776e770d09a3026a518b6910275ed5d",
        "image": {
            "name": "registry.k8s.io/etcd:3.5.7-0"
        },
        "runtime": "containerd"
    },
    "event": {
        "dataset": "kubernetes.container",
        "duration": 115000,
        "module": "kubernetes"
    },
    "kubernetes": {
        "container": {
            "cpu": {
                "request": {
                    "cores": 0.1
                }
            },
            "id": "eb97eb439a6c71ec0d24241d23c87b019776e770d09a3026a518b6910275ed5d",
            "memory": {
                "request": {
                    "bytes": 104857600
                }
            },
            "name": "etcd",
            "status": {
                "phase": "running",
                "ready": true,
                "restarts": 0
            }
        },
        "namespace": "kube-system",
        "node": {
            "name": "kind-control-plane"
        },
        "pod": {
            "name": "etcd-kind-control-plane"
        }
    },
    "metricset": {
        "name": "state_container",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "kubernetes"
    }
}