Elasticsearch ccr 指标集编辑

这是 Elasticsearch 模块的 ccr 指标集。它使用跨集群复制统计信息 API 端点从参与跨集群复制的 Elasticsearch 集群中获取有关跨集群复制的指标。

如果 Elasticsearch 集群未启用跨集群复制,则此指标集不会收集指标。关于此的信息将以 DEBUG 日志消息的形式在 Metricbeat 日志中发出。

字段

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

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

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "elasticsearch": {
        "ccr": {
            "auto_follow": {
                "failed": {
                    "follow_indices": {
                        "count": 0
                    },
                    "remote_cluster_state_requests": {
                        "count": 0
                    }
                },
                "success": {
                    "follow_indices": {
                        "count": 0
                    }
                }
            },
            "bytes_read": 0,
            "follower": {
                "aliases_version": 1,
                "global_checkpoint": -1,
                "index": "rats",
                "max_seq_no": -1,
                "operations": {
                    "read": {
                        "count": 0
                    }
                },
                "operations_written": 0,
                "settings_version": 1,
                "shard": {
                    "number": 0
                },
                "time_since_last_read": {
                    "ms": 3095
                }
            },
            "leader": {
                "global_checkpoint": -1,
                "index": "pied_piper",
                "max_seq_no": -1
            },
            "read_exceptions": [],
            "requests": {
                "failed": {
                    "read": {
                        "count": 0
                    },
                    "write": {
                        "count": 0
                    }
                },
                "outstanding": {
                    "read": {
                        "count": 1
                    },
                    "write": {
                        "count": 0
                    }
                },
                "successful": {
                    "read": {
                        "count": 0
                    },
                    "write": {
                        "count": 0
                    }
                }
            },
            "total_time": {
                "read": {
                    "ms": 0,
                    "remote_exec": {
                        "ms": 0
                    }
                },
                "write": {
                    "ms": 0
                }
            },
            "write_buffer": {
                "operation": {
                    "count": 0
                },
                "size": {
                    "bytes": 0
                }
            }
        },
        "cluster": {
            "id": "WocBBA0QRma0sGpdQ7vLfQ",
            "name": "docker-cluster"
        }
    },
    "event": {
        "dataset": "elasticsearch.ccr",
        "duration": 115000,
        "module": "elasticsearch"
    },
    "metricset": {
        "name": "ccr",
        "period": 10000
    },
    "service": {
        "address": "172.19.0.2:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}