Elasticsearch ccr metricsetedit

This is the ccr metricset of the Elasticsearch module. It uses the Cross-Cluster Replication Stats API endpoint to fetch metrics about cross-cluster replication from the Elasticsearch clusters that are participating in cross-cluster replication.

If the Elasticsearch cluster does not have cross-cluster replication enabled, this metricset will not collect metrics. A DEBUG log message about this will be emitted in the Metricbeat log.

Fieldsedit

For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

{
    "@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": 1
                    }
                }
            },
            "bytes_read": 32768,
            "follower": {
                "global_checkpoint": 768,
                "index": "follower_index",
                "max_seq_no": 896,
                "operations": {
                    "read": {
                        "count": 896
                    }
                },
                "operations_written": 832,
                "settings_version": 2,
                "shard": {
                    "number": 0
                },
                "time_since_last_read": {
                    "ms": 8
                }
            },
            "leader": {
                "global_checkpoint": 1024,
                "index": "leader_index",
                "max_seq_no": 1536
            },
            "read_exceptions": [
                {
                    "exception": {
                        "reason": "my_reason",
                        "type": "my_warn"
                    },
                    "from_seq_no": 1234,
                    "retries": 5
                },
                {
                    "exception": {
                        "reason": "my_reason",
                        "type": "my_warn"
                    },
                    "from_seq_no": 1234,
                    "retries": 5
                }
            ],
            "requests": {
                "failed": {
                    "read": {
                        "count": 0
                    },
                    "write": {
                        "count": 0
                    }
                },
                "outstanding": {
                    "read": {
                        "count": 8
                    },
                    "write": {
                        "count": 2
                    }
                },
                "successful": {
                    "read": {
                        "count": 32
                    },
                    "write": {
                        "count": 16
                    }
                }
            },
            "total_time": {
                "read": {
                    "ms": 32768,
                    "remote_exec": {
                        "ms": 16384
                    }
                },
                "write": {
                    "ms": 16384
                }
            },
            "write_buffer": {
                "operation": {
                    "count": 64
                },
                "size": {
                    "bytes": 1536
                }
            }
        },
        "cluster": {
            "id": "8l_zoGznQRmtoX9iSC-goA",
            "name": "docker-cluster"
        }
    },
    "event": {
        "dataset": "elasticsearch.ccr",
        "duration": 115000,
        "module": "elasticsearch"
    },
    "metricset": {
        "name": "ccr",
        "period": 10000
    },
    "service": {
        "address": "127.0.0.1:37735",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}