Change-Id: I23d3f8ad05d22b1578457ecca29a6e677b65e095
. "${TSP_DIR}/common.sh"
+TIMES_NAME="tsrun_time"
+TIMES="$(mktemp)"
+{
+ echo "# HELP $TIMES_NAME Execution time of the most recent command"
+ echo "# TYPE $TIMES_NAME gauge"
+} > "$TIMES"
+
for ltarget in $TARGET_LIST
do
target="${ltarget#*-}"
COUNT="$(tsrun_target "${target}" | grep queued | wc -l)"
# Report queue length
post_prom "tsrun_queued_${target}" "$COUNT" "Length of ${target} queue"
+ TIME="$(tsrun_target "${target}" -i | grep -o "[0-9]\+\.[0-9]\+")"
+ echo "${TIMES_NAME}{target=\"${ltarget}\"} $TIME" >> "$TIMES" #FIXME use real target instead of l-target
done
+
+mv "$TIMES" "$PROM_DIR/tsrun_times.prom"