|
9 | 9 | curl-format.txt: |-
|
10 | 10 | \n
|
11 | 11 | # ### curl stats ###\n
|
12 |
| - time_namelookup: %{time_namelookup}\n |
13 |
| - time_connect: %{time_connect}\n |
14 |
| - time_appconnect: %{time_appconnect}\n |
15 |
| - time_pretransfer: %{time_pretransfer}\n |
16 |
| - time_redirect: %{time_redirect}\n |
17 |
| - time_starttransfer: %{time_starttransfer}\n |
| 12 | + time_namelookup %{time_namelookup}\n |
| 13 | + time_connect %{time_connect}\n |
| 14 | + time_appconnect %{time_appconnect}\n |
| 15 | + time_pretransfer %{time_pretransfer}\n |
| 16 | + time_redirect %{time_redirect}\n |
| 17 | + time_starttransfer %{time_starttransfer}\n |
18 | 18 | \n
|
19 |
| - time_total: %{time_total}\n |
| 19 | + time_total %{time_total}\n |
20 | 20 | \n
|
21 |
| - http_code: %{http_code}\n |
22 |
| - content_type: %{content_type}\n |
23 |
| - size_download: %{size_download}\n |
| 21 | + http_code{url="%{url_effective}"} %{http_code}\n |
| 22 | + content_type %{content_type}\n |
| 23 | + size_download %{size_download}\n |
24 | 24 |
|
25 | 25 | setup.sh: |-
|
26 | 26 | touch /tmp/testlog
|
|
33 | 33 | exec >> /tmp/testlog
|
34 | 34 | exec 2>&1
|
35 | 35 |
|
36 |
| - curl -w "@/test/curl-format.txt" -s --fail-early --max-time $MAX_RESPONSE_TIME http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics |
| 36 | + curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \ |
| 37 | + http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics \ |
| 38 | + | grep http_code \ |
| 39 | + | grep 200 |
| 40 | +
|
| 41 | + curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \ |
| 42 | + http://zoo-0.zoo.kafka.svc.cluster.local:5556/metrics \ |
| 43 | + | grep http_code \ |
| 44 | + | grep 200 |
| 45 | +
|
| 46 | + curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \ |
| 47 | + http://pzoo-1.pzoo.kafka.svc.cluster.local:5556/metrics \ |
| 48 | + | grep http_code \ |
| 49 | + | grep 200 |
37 | 50 |
|
38 | 51 | exit 0
|
39 | 52 |
|
|
0 commit comments