Monitoring: Ship segment stats with node stats

This commit adds all the following segments stats to the current node_stats document:
 - memory_in_bytes
- terms_memory_in_bytes
- stored_fields_memory_in_bytes
- term_vectors_memory_in_bytes
- norms_memory_in_bytes
- doc_values_memory_in_bytes
- index_writer_memory_in_bytes
- version_map_memory_in_bytes
- fixed_bit_set_memory_in_bytes

Original commit: elastic/x-pack-elasticsearch@ea4b8034ba
This commit is contained in:
Tanguy Leroux 2016-04-04 13:53:09 +02:00
parent 25f06bb5c1
commit 652b69ad7f
2 changed files with 85 additions and 1 deletions

View File

@ -41,6 +41,15 @@ public class NodeStatsResolver extends MonitoringIndexNameResolver.Timestamped<N
"node_stats.indices.search.query_total",
"node_stats.indices.search.query_time_in_millis",
"node_stats.indices.segments.count",
"node_stats.indices.segments.memory_in_bytes",
"node_stats.indices.segments.terms_memory_in_bytes",
"node_stats.indices.segments.stored_fields_memory_in_bytes",
"node_stats.indices.segments.term_vectors_memory_in_bytes",
"node_stats.indices.segments.norms_memory_in_bytes",
"node_stats.indices.segments.doc_values_memory_in_bytes",
"node_stats.indices.segments.index_writer_memory_in_bytes",
"node_stats.indices.segments.version_map_memory_in_bytes",
"node_stats.indices.segments.fixed_bit_set_memory_in_bytes",
"node_stats.fs.total.total_in_bytes",
"node_stats.fs.total.free_in_bytes",
"node_stats.fs.total.available_in_bytes",

View File

@ -318,7 +318,82 @@
"type": "short"
},
"indices": {
"type": "object"
"properties": {
"docs": {
"properties": {
"count": {
"type": "long"
}
}
},
"indexing": {
"properties": {
"index_time_in_millis": {
"type": "long"
},
"index_total": {
"type": "long"
},
"throttle_time_in_millis": {
"type": "long"
}
}
},
"search": {
"properties": {
"query_time_in_millis": {
"type": "long"
},
"query_total": {
"type": "long"
}
}
},
"segments": {
"properties": {
"count": {
"type": "long"
},
"memory_in_bytes": {
"type": "long"
},
"terms_memory_in_bytes": {
"type": "long"
},
"stored_fields_memory_in_bytes": {
"type": "long"
},
"term_vectors_memory_in_bytes": {
"type": "long"
},
"norms_memory_in_bytes": {
"type": "long"
},
"doc_values_memory_in_bytes": {
"type": "long"
},
"index_writer_memory_in_bytes": {
"type": "long"
},
"version_map_memory_in_bytes": {
"type": "long"
},
"fixed_bit_set_memory_in_bytes": {
"type": "long"
}
}
},
"store": {
"properties": {
"size_in_bytes": {
"type": "long"
},
"throttle_time_in_millis": {
"type": "long"
}
}
}
}
},
"fs": {
"type": "object"