Add ability to get data from different DBs in influx 39/66739/8
authorEmma Foley <emma.l.foley@intel.com>
Tue, 18 Dec 2018 18:26:23 +0000 (18:26 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Mon, 11 Feb 2019 11:53:27 +0000 (11:53 +0000)
commit4ac123951f5571d44ec01b680941b95203653c64
treec489ccc1bcaab40a3da1a894dc645bca174b7156
parent0738c2544e3220a3e0fd80a77ab1f2800f90533e
Add ability to get data from different DBs in influx

In order to get data from Barometer, the influx helper need
to be updated to recognise different DBs. This patch adds
an optional arg to specify which database to use.
By default, the configured dispatcher for Yardstick is
used.
Limitation: The new change hard codes barometer DB name to
be used, and assumes that it is in the same instance of
Influx as the Yardstick dispatcher.
This can be extended later to make it configurable,
however, a new config option would have to be introduced.

JIRA: YARDSTICK-1593
Change-Id: Idee9c3491d6bf7b549e014edd9ff031312cf0ec2
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
api/utils/influx.py
yardstick/tests/unit/apiserver/utils/test_influx.py