Commit b01b75a5 authored by litaolemo's avatar litaolemo

update

parent 0e099a50
......@@ -60,11 +60,10 @@ def get_node_status(ip):
node_requests_url = "http://{ip}:9200/_nodes/stats".format(ip=ip)
node_requests_res = requests.get(node_requests_url)
res_json = node_requests_res.json()
print(res_json)
for data_name in res_json["nodes"]:
data = res_json['nodes'][data_name]
node_name = data['name']
print(data)
ip = data['ip']
query_time = data["indices"]["search"]["query_time_in_millis"]
query_current = data["indices"]["search"]["query_current"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment