diff options
Diffstat (limited to 'test/metrics.yml')
-rw-r--r-- | test/metrics.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/metrics.yml b/test/metrics.yml index 70a15ca..a95ae06 100644 --- a/test/metrics.yml +++ b/test/metrics.yml @@ -1,3 +1,5 @@ +# kubectl apply -f test/metrics.yml && kubectl scale --replicas=0 deploy/metrics && kubectl scale --replicas=1 deploy/metrics +# kubectl exec -ti metrics-... -- tail -f /tmp/loglast | grep time_total --- kind: ConfigMap metadata: @@ -16,11 +18,11 @@ data: time_redirect %{time_redirect}\n time_starttransfer %{time_starttransfer}\n \n - time_total %{time_total}\n + time_total{url="%{url_effective}"} %{time_total}\n \n http_code{url="%{url_effective}"} %{http_code}\n + size_download{url="%{url_effective}"} %{size_download}\n content_type %{content_type}\n - size_download %{size_download}\n setup.sh: |- touch /tmp/testlog @@ -33,18 +35,23 @@ data: exec >> /tmp/testlog exec 2>&1 + date -u -Iseconds | tee /tmp/loglast + curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \ http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics \ + | tee -a /tmp/loglast \ | grep http_code \ | grep 200 curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \ http://zoo-0.zoo.kafka.svc.cluster.local:5556/metrics \ + | tee -a /tmp/loglast \ | grep http_code \ | grep 200 curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \ http://pzoo-1.pzoo.kafka.svc.cluster.local:5556/metrics \ + | tee -a /tmp/loglast \ | grep http_code \ | grep 200 |