Elasticsearch index_recovery 度量集
编辑Elasticsearch index_recovery 度量集
编辑这是 Elasticsearch 模块的 index_recovery 度量集。
默认情况下,会获取所有索引的数据。要仅收集处于活动恢复状态的索引的数据,请设置 index_recovery.active_only: true
- module: elasticsearch metricsets: - index_recovery hosts: ["localhost:9200"] index_recovery.active_only: false
有关度量集中每个字段的说明,请参阅 导出字段 部分。
这是一个由该度量集生成的示例文档
{ "@timestamp": "2017-10-12T08:05:34.853Z", "elasticsearch": { "cluster": { "id": "WocBBA0QRma0sGpdQ7vLfQ", "name": "docker-cluster" }, "index": { "name": "users", "recovery": { "id": 0, "index": { "files": { "percent": "0.0%", "recovered": 0, "reused": 0, "total": 0 }, "size": { "recovered_in_bytes": 0, "reused_in_bytes": 0, "total_in_bytes": 0 } }, "name": "users", "primary": true, "source": {}, "stage": "DONE", "start_time": { "ms": 1635956540240 }, "stop_time": { "ms": 1635956540265 }, "target": { "host": "127.0.0.1", "id": "f5i3v9hMT_q__q6B9WOo5A", "name": "27fb1c2fd783", "transport_address": "127.0.0.1:9300" }, "translog": { "percent": "100.0%", "total": 0, "total_on_start": 0 }, "type": "EMPTY_STORE" } } }, "event": { "dataset": "elasticsearch.index.recovery", "duration": 115000, "module": "elasticsearch" }, "metricset": { "name": "index_recovery", "period": 10000 }, "service": { "address": "172.19.0.2:9200", "name": "elasticsearch", "type": "elasticsearch" } }