Commit 4179e758 by Gregory Nagy

Added vmtask celery based metrics fetch

parent 61d666bb
......@@ -117,8 +117,9 @@ class Node(TimeStampedModel):
try:
handler = GraphiteHandler()
except:
collected["cpu.usage"] = None
collected["memory.usage"] = self.ram_size
response = self.remote_query(vm_tasks.get_monitor_info, 30)
collected['cpu.usage'] = response['cpu.usage']
collected['memory.usage'] = response['memory.usage']
return collected
query = Query()
query.set_target(self.host.hostname + ".circle")
......
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 sign in to comment