Marvel: Add Fielddata stats to index_stats
Closes elastic/elasticsearch#671 Original commit: elastic/x-pack-elasticsearch@eabd7eab20
This commit is contained in:
parent
34937604e1
commit
a5dcb52ba8
|
@ -20,6 +20,7 @@ public class IndexStatsRenderer extends AbstractRenderer<IndexStatsMarvelDoc> {
|
|||
"index_stats.index",
|
||||
"index_stats.primaries.docs.count",
|
||||
"index_stats.total.docs.count",
|
||||
"index_stats.total.fielddata.memory_size_in_bytes",
|
||||
"index_stats.total.indexing.index_total",
|
||||
"index_stats.total.indexing.index_time_in_millis",
|
||||
"index_stats.total.indexing.throttle_time_in_millis",
|
||||
|
|
|
@ -86,6 +86,13 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"fielddata" : {
|
||||
"properties": {
|
||||
"memory_size_in_bytes": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
},
|
||||
"store": {
|
||||
"properties": {
|
||||
"size_in_bytes": {
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
*/
|
||||
package org.elasticsearch.marvel.agent.renderer.indices;
|
||||
|
||||
import com.carrotsearch.hppc.ObjectLongHashMap;
|
||||
import org.elasticsearch.action.admin.indices.stats.CommonStats;
|
||||
import org.elasticsearch.action.admin.indices.stats.IndexStats;
|
||||
import org.elasticsearch.action.admin.indices.stats.ShardStats;
|
||||
import org.elasticsearch.index.engine.SegmentsStats;
|
||||
import org.elasticsearch.index.fielddata.FieldDataStats;
|
||||
import org.elasticsearch.index.indexing.IndexingStats;
|
||||
import org.elasticsearch.index.merge.MergeStats;
|
||||
import org.elasticsearch.index.refresh.RefreshStats;
|
||||
|
@ -41,6 +43,7 @@ public class IndexStatsRendererTests extends ESTestCase {
|
|||
stats.merge = new MergeStats();
|
||||
stats.merge.add(0L, 0L, 0L, 42L, 0L, 0L, 0L, 0L, 0L, 0L);
|
||||
stats.refresh = new RefreshStats(0L, 978L);
|
||||
stats.fieldData = new FieldDataStats(123456L, 0L, null);
|
||||
stats.segments = new SegmentsStats();
|
||||
stats.segments.add(0, 87965412L);
|
||||
return stats;
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
"refresh" : {
|
||||
"total_time_in_millis" : 978
|
||||
},
|
||||
"fielddata" : {
|
||||
"memory_size_in_bytes" : 123456
|
||||
},
|
||||
"segments" : {
|
||||
"memory_in_bytes" : 87965412
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue