Skip to content

Commit

Permalink
fix system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Aug 22, 2017
1 parent 7308692 commit 535888f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metricbeat/tests/system/test_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_drop_fields(self):
print(cpu.keys())
self.assertItemsEqual(self.de_dot([
"system", "cores", "user", "softirq", "iowait",
"idle", "irq", "steal", "nice"
"idle", "irq", "steal", "nice", "total"
]), cpu.keys())

def test_dropfields_with_condition(self):
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/tests/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import os

SYSTEM_CPU_FIELDS = ["cores", "idle.pct", "iowait.pct", "irq.pct", "nice.pct",
"softirq.pct", "steal.pct", "system.pct", "user.pct"]
"softirq.pct", "steal.pct", "system.pct", "user.pct", "total.pct"]

SYSTEM_CPU_FIELDS_ALL = ["cores", "idle.pct", "idle.ticks", "iowait.pct", "iowait.ticks", "irq.pct", "irq.ticks", "nice.pct", "nice.ticks",
"softirq.pct", "softirq.ticks", "steal.pct", "steal.ticks", "system.pct", "system.ticks", "user.pct", "user.ticks",
"idle.norm.pct", "iowait.norm.pct", "irq.norm.pct", "nice.norm.pct", "softirq.norm.pct",
"steal.norm.pct", "system.norm.pct", "user.norm.pct"]
"steal.norm.pct", "system.norm.pct", "user.norm.pct", "total.norm.pct"]

SYSTEM_LOAD_FIELDS = ["cores", "1", "5", "15", "norm.1", "norm.5", "norm.15"]

Expand Down

0 comments on commit 535888f

Please sign in to comment.