Commit c6702fc4 by Gregory Nagy

Graphite avoiding vmtasks integration

parent c1c17114
......@@ -113,8 +113,14 @@ class Node(TimeStampedModel):
return default
def get_monitor_info(self):
collected = {}
try:
handler = GraphiteHandler()
except:
collected["cpu.usage"] = None
collected["memory.usage"] = self.ram_size
return collected
query = Query()
handler = GraphiteHandler()
query.set_target(self.host.hostname + ".circle")
query.set_format("json")
query.set_relative_start(5, "minutes")
......
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