Commit 484cdffa authored by 李贺's avatar 李贺

修改监控进程插件

parent c039e4eb
...@@ -38,7 +38,7 @@ if __name__ == "__main__": ...@@ -38,7 +38,7 @@ if __name__ == "__main__":
"timestamp":int(time.time()), "timestamp":int(time.time()),
"metric": "sys.process.cpu.percent", "metric": "sys.process.cpu.percent",
"counterType":"GAUGE", "counterType":"GAUGE",
"value":process[4], "value":process[2],
"step": 60 "step": 60
} }
data.append(tmp_cpu_percent) data.append(tmp_cpu_percent)
......
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