Commit 1c8aace6 authored by 李贺's avatar 李贺

Update 60_processlist_monitor.py

parent 484cdffa
......@@ -28,7 +28,7 @@ if __name__ == "__main__":
"timestamp":int(time.time()),
"metric": "sys.process.memory.percent",
"counterType":"GAUGE",
"value":process[3],
"value":float(process[3]),
"step": 60
}
......@@ -38,9 +38,10 @@ if __name__ == "__main__":
"timestamp":int(time.time()),
"metric": "sys.process.cpu.percent",
"counterType":"GAUGE",
"value":process[2],
"value":float(process[2]),
"step": 60
}
data.append(tmp_cpu_percent)
data.append(tmp_memory_percent)
print json.dumps(data)
\ No newline at end of file
print json.dumps(data)
\ No newline at end of file
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