diff --git a/tests/perfscale-sizing-recommendation/check_metrics.sh b/tests/perfscale-sizing-recommendation/check_metrics.sh index 1fe66d3..3662e04 100755 --- a/tests/perfscale-sizing-recommendation/check_metrics.sh +++ b/tests/perfscale-sizing-recommendation/check_metrics.sh @@ -14,7 +14,7 @@ query="$metric" count=0 response=$(curl -s -k -H "Authorization: Bearer $TOKEN" -H "Content-type: application/json" "https://$THANOS_QUERIER_HOST/api/v1/query?query=$query") time=$(echo "$response" | jq -r '.data.result[0].value[0]') - count=$(echo "$response" | jq -r '.data.result[0].value[1]') + count=$(echo "$response" | jq -r '[.data.result[].value[1] | tonumber] | add') echo "$time;$count" >> $metric.log echo "Metric: $metric: $count" done