Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Influxdb-reporter's send-interval to be modified #1824

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion bzt/modules/influxdb_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from bzt.engine import Reporter, Singletone
from bzt.modules.aggregator import DataPoint, KPISet, AggregatorListener, ResultsProvider
from bzt.utils import iteritems
from bzt.utils import iteritems, dehumanize_time

Check warning on line 28 in bzt/modules/influxdb_reporter.py

View check run for this annotation

Codecov / codecov/patch

bzt/modules/influxdb_reporter.py#L28

Added line #L28 was not covered by tests
from influxdb.exceptions import InfluxDBServerError, InfluxDBClientError


Expand Down Expand Up @@ -80,6 +80,7 @@
def prepare(self):
super(InfluxdbStatusReporter, self).prepare()

self.send_interval = dehumanize_time(self.settings.get("send-interval", self.send_interval))

Check warning on line 83 in bzt/modules/influxdb_reporter.py

View check run for this annotation

Codecov / codecov/patch

bzt/modules/influxdb_reporter.py#L83

Added line #L83 was not covered by tests
self.send_data = self.parameters.get("send-data", self.send_data)
self.application = self.parameters.get("application", self.settings.get("application", self.application))
self.measurement = self.settings.get("measurement", None)
Expand Down