Open pySatellite opened 9 months ago
$ cat docker-stats.sh
#!/bin/bash
now=$(date +'%d_%b_%Y_%H_%M')
while true; do
printf "\n$(date +'%d_%b_%Y_%H_%M_%S'):\n" | tee --append stats_$now.txt
sudo docker stats --no-stream | tee --append stats_$now.txt
sleep 1
done
$ sh docker-stats.sh
@Test
public void test() {
HTTPResponse response = request.GET("http://aws.google.com:9889/", params)
if (response.statusCode == 301 || response.statusCode == 302) {
grinder.logger.warn("Warning. The response may not be correct. The response code was {}.", response.statusCode)
} else {
assertThat(response.statusCode, is(200))
}
grinder.sleep(1000)
}