File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change
1
+ # kubectl apply -f test/metrics.yml && kubectl scale --replicas=0 deploy/metrics && kubectl scale --replicas=1 deploy/metrics
2
+ # kubectl exec -ti metrics-... -- tail -f /tmp/loglast | grep time_total
1
3
---
2
4
kind : ConfigMap
3
5
metadata :
@@ -16,11 +18,11 @@ data:
16
18
time_redirect %{time_redirect}\n
17
19
time_starttransfer %{time_starttransfer}\n
18
20
\n
19
- time_total %{time_total}\n
21
+ time_total{url="%{url_effective}"} %{time_total}\n
20
22
\n
21
23
http_code{url="%{url_effective}"} %{http_code}\n
24
+ size_download{url="%{url_effective}"} %{size_download}\n
22
25
content_type %{content_type}\n
23
- size_download %{size_download}\n
24
26
25
27
setup.sh : |-
26
28
touch /tmp/testlog
@@ -33,18 +35,23 @@ data:
33
35
exec >> /tmp/testlog
34
36
exec 2>&1
35
37
38
+ date -u -Iseconds | tee /tmp/loglast
39
+
36
40
curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \
37
41
http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics \
42
+ | tee -a /tmp/loglast \
38
43
| grep http_code \
39
44
| grep 200
40
45
41
46
curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \
42
47
http://zoo-0.zoo.kafka.svc.cluster.local:5556/metrics \
48
+ | tee -a /tmp/loglast \
43
49
| grep http_code \
44
50
| grep 200
45
51
46
52
curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \
47
53
http://pzoo-1.pzoo.kafka.svc.cluster.local:5556/metrics \
54
+ | tee -a /tmp/loglast \
48
55
| grep http_code \
49
56
| grep 200
50
57
Original file line number Diff line number Diff line change 34
34
command :
35
35
- java
36
36
- -Xms39M
37
- - -Xmx99M
37
+ - -Xmx80M
38
+ - -XX:MaxPermSize=16m
39
+ - -Xss1m
38
40
- -jar
39
41
- jmx_prometheus_httpserver.jar
40
42
- " 5556"
You can’t perform that action at this time.
0 commit comments