summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-01-13 15:53:00 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2016-01-13 16:52:06 +0000
commit55f7c41c927320a3dac5a0907ebf66647aafd8a8 (patch)
treec3b1aa07a6b4eff12e191303e10f09943bcd885f
parent791323df72d8bf4f4f4c32a1e7273721f2adc349 (diff)
ci: add influxdb target options
Change-Id: I50cbbf4d2fe59d688a4951cc8bec3362b098adcb JIRA:- Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
-rwxr-xr-xci/yardstick-verify21
1 files changed, 16 insertions, 5 deletions
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