table.addCell(nodeStats.getIndices().getStore().getSize()); table.addCell(used < 0 ? null : new ByteSizeValue(used)); table.addCell(avail.getBytes() < 0 ? null : avail);
private void logIndexStats(Map<String, IndexStats> indexStatsMap) { for (IndexStats stat : indexStatsMap.values()) { String indexKey = "esindex_" + stat.getIndex(); Stats.setGauge(StatsUtil.getStatsName(indexKey, "primaryDocCount"), stat.getPrimaries().getDocs().getCount()); Stats.setGauge(StatsUtil.getStatsName(indexKey, "totalDocCount"), stat.getTotal().getDocs().getCount()); Stats.setGauge(StatsUtil.getStatsName(indexKey, "shardsCount"), stat.getShards().length); Stats.setGauge(StatsUtil.getStatsName(indexKey, "primaryStoreSizeMB"), stat.getPrimaries().getStore().getSize().getMbFrac()); Stats.setGauge(StatsUtil.getStatsName(indexKey, "totalStoreSizeMB"), stat.getTotal().getStore().getSize().getMbFrac()); } } }
table.addCell(commonStats == null ? null : commonStats.getStore().getSize()); if (shard.assignedToNode()) { String ip = state.getState().nodes().get(shard.currentNodeId()).getHostAddress();
table.addCell(commonStats == null ? null : commonStats.getStore().getSize()); if (shard.assignedToNode()) { String ip = state.getState().nodes().get(shard.currentNodeId()).getHostAddress();
table.addCell(nodeStats.getIndices().getStore().getSize()); table.addCell(used < 0 ? null : new ByteSizeValue(used)); table.addCell(avail.getBytes() < 0 ? null : avail);
table.addCell(nodeStats.getIndices().getStore().getSize()); table.addCell(used < 0 ? null : new ByteSizeValue(used)); table.addCell(avail.getBytes() < 0 ? null : avail);
table.addCell(nodeStats.getIndices().getStore().getSize()); table.addCell(used < 0 ? null : new ByteSizeValue(used)); table.addCell(avail.getBytes() < 0 ? null : avail);
table.addCell(nodeStats.getIndices().getStore().getSize()); table.addCell(used < 0 ? null : new ByteSizeValue(used)); table.addCell(avail.bytes() < 0 ? null : avail);