Skip to content

Commit

Permalink
Reduce the polling interval in metricbeat sys tests (#1912)
Browse files Browse the repository at this point in the history
The theory goes that on the Jenkins slave, when doing % every 5s
there's no process that has significant CPU time. Reducing this to
1s should lower the chance of that happening and probably also speed
up the tests.
  • Loading branch information
tsg authored and monicasarbu committed Jun 27, 2016
1 parent f4aa97f commit f2c36ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions metricbeat/tests/system/test_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_drop_fields(self):
modules=[{
"name": "system",
"metricsets": ["cpu"],
"period": "5s"
"period": "1s"
}],
drop_fields={
"condition": "range.system.cpu.system.pct.lt: 0.1",
Expand Down Expand Up @@ -50,7 +50,7 @@ def test_dropfields_with_condition(self):
modules=[{
"name": "system",
"metricsets": ["process"],
"period": "5s"
"period": "1s"
}],
drop_fields={
"fields": ["system.process.memory"],
Expand Down Expand Up @@ -82,7 +82,7 @@ def test_dropevent_with_condition(self):
modules=[{
"name": "system",
"metricsets": ["process"],
"period": "5s"
"period": "1s"
}],
drop_event={
"condition": "range.system.process.cpu.total.pct.lt: 0.001",
Expand All @@ -109,7 +109,7 @@ def test_include_fields(self):
modules=[{
"name": "system",
"metricsets": ["process"],
"period": "5s"
"period": "1s"
}],
include_fields={"fields": ["system.process.cpu", "system.process.memory"]},
)
Expand Down Expand Up @@ -149,7 +149,7 @@ def test_multiple_actions(self):
modules=[{
"name": "system",
"metricsets": ["process"],
"period": "5s"
"period": "1s"
}],
include_fields={"fields": ["system.process"]},
drop_fields={"fields": ["system.process.memory"]},
Expand Down Expand Up @@ -188,7 +188,7 @@ def test_contradictory_multiple_actions(self):
modules=[{
"name": "system",
"metricsets": ["process"],
"period": "5s"
"period": "1s"
}],
include_fields={"fields": ["system.process.memory.size", "proc.memory.rss.pct"]},
drop_fields={"fields": ["system.process.memory.size", "proc.memory.rss.pct"]},
Expand Down

0 comments on commit f2c36ee

Please sign in to comment.