summaryrefslogtreecommitdiffstats
path: root/ci
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 17:22:16 +0000
commit2369528e0fd5cfda4eb29a62501e2646887ea8ff (patch)
treec3b1aa07a6b4eff12e191303e10f09943bcd885f /ci
parentad3ec6ae195e9cda3af316d5cc47de0e948abe4c (diff)
ci: add influxdb target options
Change-Id: I50cbbf4d2fe59d688a4951cc8bec3362b098adcb JIRA:- Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> (cherry picked from commit 55f7c41c927320a3dac5a0907ebf66647aafd8a8)
Diffstat (limited to 'ci')
-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