diff options
author | Staffan Olsson <staffan@repos.se> | 2017-07-29 11:42:11 +0200 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2017-07-31 07:02:46 +0200 |
commit | 813983965508729f7c6ae851bf9cf3db9d0f861f (patch) | |
tree | 59e02b6c2d1aa271b5817dca7d99c8f6efa065da | |
parent | 08780ff907143d0a7a38d5b5d70e51aa5b86382b (diff) | |
download | kubernetes-kafka-813983965508729f7c6ae851bf9cf3db9d0f861f.tar.gz kubernetes-kafka-813983965508729f7c6ae851bf9cf3db9d0f861f.tar.bz2 kubernetes-kafka-813983965508729f7c6ae851bf9cf3db9d0f861f.zip |
The 1s response time from kafka might be due to ...
that unlike zoo pods it actually exposes interesting data
-rw-r--r-- | 50kafka.yml | 10 | ||||
-rw-r--r-- | test/metrics.yml | 8 | ||||
-rw-r--r-- | zookeeper/50pzoo.yml | 6 |
3 files changed, 19 insertions, 5 deletions
diff --git a/50kafka.yml b/50kafka.yml index 7d6765b..2add145 100644 --- a/50kafka.yml +++ b/50kafka.yml @@ -25,6 +25,16 @@ spec: containers: - name: metrics image: solsson/kafka-prometheus-jmx-exporter@sha256:07cdc4b446ebe8208950202b924caefadad006ea94ae92d73bef81897df4d5c7 + command: + - java + - -Xmx80M + # TODO OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=16m; support was removed in 8.0 + - -XX:MaxPermSize=16m + - -Xss1m + - -jar + - jmx_prometheus_httpserver.jar + - "5556" + - example_configs/kafka-prometheus-monitoring.yml ports: - containerPort: 5556 resources: diff --git a/test/metrics.yml b/test/metrics.yml index a95ae06..822421a 100644 --- a/test/metrics.yml +++ b/test/metrics.yml @@ -1,5 +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 +# kubectl exec -ti metrics-... -- tail -f /tmp/loglast | egrep 'time_total|^jmx_scrape_duration_seconds' --- kind: ConfigMap metadata: @@ -10,7 +10,7 @@ data: curl-format.txt: |- \n - # ### curl stats ###\n + # ------ curl stats ------\n time_namelookup %{time_namelookup}\n time_connect %{time_connect}\n time_appconnect %{time_appconnect}\n @@ -23,6 +23,8 @@ data: http_code{url="%{url_effective}"} %{http_code}\n size_download{url="%{url_effective}"} %{size_download}\n content_type %{content_type}\n + # ----- curl complete -----\n + \n setup.sh: |- touch /tmp/testlog @@ -76,7 +78,7 @@ spec: image: solsson/curl@sha256:8c0c5d669b3dd67932da934024252af59fb9d0fa0e5118b5a737b35c5e1487bf env: - name: MAX_RESPONSE_TIME - value: "5" + value: "3" # Test set up command: - /bin/bash diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index 82c4148..2627040 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -30,8 +30,10 @@ spec: image: solsson/kafka-prometheus-jmx-exporter@sha256:07cdc4b446ebe8208950202b924caefadad006ea94ae92d73bef81897df4d5c7 command: - java - - -Xms39M - - -Xmx99M + - -Xmx80M + # TODO OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=16m; support was removed in 8.0 + - -XX:MaxPermSize=16m + - -Xss1m - -jar - jmx_prometheus_httpserver.jar - "5556" |