From 2369528e0fd5cfda4eb29a62501e2646887ea8ff Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Wed, 13 Jan 2016 15:53:00 +0100 Subject: ci: add influxdb target options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I50cbbf4d2fe59d688a4951cc8bec3362b098adcb JIRA:- Signed-off-by: Jo¶rgen Karlsson (cherry picked from commit 55f7c41c927320a3dac5a0907ebf66647aafd8a8) --- ci/yardstick-verify | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'ci') diff --git a/ci/yardstick-verify b/ci/yardstick-verify index 1b045cdd3..9e875ed32 100755 --- a/ci/yardstick-verify +++ b/ci/yardstick-verify @@ -32,9 +32,10 @@ If no test suites are given ping.yaml is run. OPTIONS: -h Show this message - -r IP address for Result API. - Default is to store the results to file ($DISPATCHER_FILE_NAME) - if this option is not present. + -r Http target (example: -r 213.77.62.197/results) + -i Influxdb target (example: -i 127.0.0.1:8086) + + Default target is dump to file ($DISPATCHER_FILE_NAME) EOF } @@ -42,8 +43,9 @@ EOF DISPATCHER_TYPE=file DISPATCHER_FILE_NAME="/tmp/yardstick.out" DISPATCHER_HTTP_TARGET= +DISPATCHER_INFLUXDB_TARGET= -while getopts "r:h" OPTION; do +while getopts "r:i:h" OPTION; do case $OPTION in h) usage @@ -51,7 +53,11 @@ while getopts "r:h" OPTION; do ;; r) DISPATCHER_TYPE=http - DISPATCHER_HTTP_TARGET=http://${OPTARG}/results + DISPATCHER_HTTP_TARGET=http://${OPTARG} + ;; + i) + DISPATCHER_TYPE=influxdb + DISPATCHER_INFLUXDB_TARGET=http://${OPTARG} ;; *) echo "${OPTION} is not a valid argument" @@ -199,6 +205,11 @@ file_name = ${DISPATCHER_FILE_NAME} [dispatcher_http] timeout = 5 target = ${DISPATCHER_HTTP_TARGET} + +[dispatcher_influxdb] +timeout = 5 +target = ${DISPATCHER_INFLUXDB_TARGET} +db_name = yardstick EOF local failed=0 -- cgit 1.2.3-korg