Etcd 指标度量集编辑

此功能处于测试阶段,可能会发生更改。设计和代码的成熟度低于正式 GA 功能,按原样提供,不提供任何担保。测试版功能不受正式 GA 功能支持 SLA 的约束。

这是 etcd 模块的指标端点度量集。此指标从 Etcd V3 端点读取,不会显示有关 Etcd V2 的任何活动。

字段

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

以下是由此度量集生成的示例文档

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "etcd": {
        "api_version": "3",
        "disk": {
            "backend_commit_duration": {
                "ns": {
                    "bucket": {
                        "+Inf": 7,
                        "1000000": 5,
                        "1024000000": 7,
                        "128000000": 7,
                        "16000000": 7,
                        "2000000": 7,
                        "2048000000": 7,
                        "256000000": 7,
                        "32000000": 7,
                        "4000000": 7,
                        "4096000000": 7,
                        "512000000": 7,
                        "64000000": 7,
                        "8000000": 7,
                        "8192000000": 7
                    },
                    "count": 7,
                    "sum": 4332557
                }
            },
            "mvcc_db_total_size": {
                "bytes": 41369600
            },
            "wal_fsync_duration": {
                "ns": {
                    "bucket": {
                        "+Inf": 3,
                        "1000000": 0,
                        "1024000000": 3,
                        "128000000": 3,
                        "16000000": 2,
                        "2000000": 0,
                        "2048000000": 3,
                        "256000000": 3,
                        "32000000": 3,
                        "4000000": 0,
                        "4096000000": 3,
                        "512000000": 3,
                        "64000000": 3,
                        "8000000": 2,
                        "8192000000": 3
                    },
                    "count": 3,
                    "sum": 40943916.00000001
                }
            }
        },
        "memory": {
            "go_memstats_alloc": {
                "bytes": 9952840
            }
        },
        "network": {
            "client_grpc_received": {
                "bytes": 0
            },
            "client_grpc_sent": {
                "bytes": 0
            }
        },
        "server": {
            "grpc_handled": {
                "count": 0
            },
            "grpc_started": {
                "count": 0
            },
            "has_leader": 1,
            "leader_changes": {
                "count": 1
            },
            "proposals_committed": {
                "count": 110024
            },
            "proposals_failed": {
                "count": 0
            },
            "proposals_pending": {
                "count": 0
            }
        }
    },
    "event": {
        "dataset": "etcd",
        "duration": 115000,
        "module": "etcd"
    },
    "metricset": {
        "name": "metrics"
    },
    "service": {
        "address": "127.0.0.1:2379",
        "type": "etcd"
    }
}