Commit c6702fc4 by Gregory Nagy

Graphite avoiding vmtasks integration

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