Marvel: Restore cluster_state.nodes
Original commit: elastic/x-pack-elasticsearch@7cf33baf2a
This commit is contained in:
parent
d5af83da1c
commit
d904fa5931
|
@ -22,6 +22,7 @@ public class ClusterStateRenderer extends AbstractRenderer<ClusterStateMarvelDoc
|
||||||
"cluster_state.master_node",
|
"cluster_state.master_node",
|
||||||
"cluster_state.state_uuid",
|
"cluster_state.state_uuid",
|
||||||
"cluster_state.status",
|
"cluster_state.status",
|
||||||
|
"cluster_state.nodes",
|
||||||
};
|
};
|
||||||
|
|
||||||
public ClusterStateRenderer() {
|
public ClusterStateRenderer() {
|
||||||
|
|
|
@ -186,6 +186,9 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"index": "not_analyzed"
|
"index": "not_analyzed"
|
||||||
},
|
},
|
||||||
|
"nodes": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
"shards": {
|
"shards": {
|
||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,6 +170,7 @@ public class ClusterStateCollectorTests extends AbstractCollectorTestCase {
|
||||||
case ClusterStateCollector.TYPE:
|
case ClusterStateCollector.TYPE:
|
||||||
ClusterStateMarvelDoc clusterStateMarvelDoc = (ClusterStateMarvelDoc) marvelDoc;
|
ClusterStateMarvelDoc clusterStateMarvelDoc = (ClusterStateMarvelDoc) marvelDoc;
|
||||||
assertThat(clusterStateMarvelDoc.getClusterState().getRoutingTable().allShards(), hasSize(nbShards));
|
assertThat(clusterStateMarvelDoc.getClusterState().getRoutingTable().allShards(), hasSize(nbShards));
|
||||||
|
assertThat(clusterStateMarvelDoc.getClusterState().getNodes().getSize(), equalTo(internalCluster().size()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ClusterStateCollector.NODES_TYPE:
|
case ClusterStateCollector.NODES_TYPE:
|
||||||
|
|
|
@ -5,6 +5,15 @@
|
||||||
"status": "yellow",
|
"status": "yellow",
|
||||||
"version": 14,
|
"version": 14,
|
||||||
"state_uuid": "lj0hNoO9QaeNa1eR2ukktQ",
|
"state_uuid": "lj0hNoO9QaeNa1eR2ukktQ",
|
||||||
"master_node": "__node_id__"
|
"master_node": "__node_id__",
|
||||||
|
"nodes": {
|
||||||
|
"__node_id__": {
|
||||||
|
"name": "Box",
|
||||||
|
"transport_address": "inet[/127.0.0.1:9300]",
|
||||||
|
"attributes": {
|
||||||
|
"local": "true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue