Commit 2ebe3710 authored by litaolemo's avatar litaolemo

update

parent ca8b6a2f
......@@ -44,6 +44,7 @@ def get_cluster_stats(ip):
node_requests_url = "http://{ip}:9200/_cluster/stats".format(ip=ip)
node_requests_res = requests.get(node_requests_url)
res_json = node_requests_res.json()
print(res_json)
stats = res_json.get("status")
timestamp = int(datetime.datetime.now().timestamp())
memory_used = res_json["nodes"]['jvm']["mem"].get("heap_used_in_bytes")
......
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