Skip to content

Commit 42e3e2e

Browse files
committed
The 1s response time from kafka might be due to ...
that unlike zoo pods it actually exposes interesting data
1 parent 91d92bb commit 42e3e2e

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

50kafka.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ spec:
2525
containers:
2626
- name: metrics
2727
image: solsson/kafka-prometheus-jmx-exporter@sha256:07cdc4b446ebe8208950202b924caefadad006ea94ae92d73bef81897df4d5c7
28+
command:
29+
- java
30+
- -Xmx80M
31+
# TODO OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=16m; support was removed in 8.0
32+
- -XX:MaxPermSize=16m
33+
- -Xss1m
34+
- -jar
35+
- jmx_prometheus_httpserver.jar
36+
- "5556"
37+
- example_configs/kafka-prometheus-monitoring.yml
2838
ports:
2939
- containerPort: 5556
3040
resources:

test/metrics.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 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
2+
# kubectl exec -ti metrics-... -- tail -f /tmp/loglast | egrep 'time_total|^jmx_scrape_duration_seconds'
33
---
44
kind: ConfigMap
55
metadata:
@@ -10,7 +10,7 @@ data:
1010

1111
curl-format.txt: |-
1212
\n
13-
# ### curl stats ###\n
13+
# ------ curl stats ------\n
1414
time_namelookup %{time_namelookup}\n
1515
time_connect %{time_connect}\n
1616
time_appconnect %{time_appconnect}\n
@@ -23,6 +23,8 @@ data:
2323
http_code{url="%{url_effective}"} %{http_code}\n
2424
size_download{url="%{url_effective}"} %{size_download}\n
2525
content_type %{content_type}\n
26+
# ----- curl complete -----\n
27+
\n
2628
2729
setup.sh: |-
2830
touch /tmp/testlog
@@ -76,7 +78,7 @@ spec:
7678
image: solsson/curl@sha256:8c0c5d669b3dd67932da934024252af59fb9d0fa0e5118b5a737b35c5e1487bf
7779
env:
7880
- name: MAX_RESPONSE_TIME
79-
value: "5"
81+
value: "3"
8082
# Test set up
8183
command:
8284
- /bin/bash

zookeeper/50pzoo.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ spec:
3030
image: solsson/kafka-prometheus-jmx-exporter@sha256:07cdc4b446ebe8208950202b924caefadad006ea94ae92d73bef81897df4d5c7
3131
command:
3232
- java
33-
- -Xms39M
34-
- -Xmx99M
33+
- -Xmx80M
34+
# TODO OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=16m; support was removed in 8.0
35+
- -XX:MaxPermSize=16m
36+
- -Xss1m
3537
- -jar
3638
- jmx_prometheus_httpserver.jar
3739
- "5556"

0 commit comments

Comments
 (0)