added Memory percent and increased duration of cpu time by 3 seconds

This commit is contained in:
Your Name 2017-02-22 13:28:33 +00:00
parent 12ab8ec154
commit 5b0ab957ff
1 changed files with 4 additions and 4 deletions

View File

@ -114,10 +114,10 @@ func (p *SpecProcessor) pushMetrics() error {
fields[prefix+"memory_swap"] = mem.Swap
}
memory_perc, err := p.proc.MemoryPercent()
if err == nil {
fields[prefix+"memory_usage"] = memory_perc
}
memory_perc, err := p.proc.MemoryPercent()
if err == nil {
fields[prefix+"memory_usage"] = memory_perc
}
p.acc.AddFields("procstat", fields, p.tags)
return nil