Commit 4179e758 by Gregory Nagy

Added vmtask celery based metrics fetch

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