File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 25
25
containers :
26
26
- name : metrics
27
27
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
28
38
ports :
29
39
- containerPort : 5556
30
40
resources :
Original file line number Diff line number Diff line change 1
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
2
+ # kubectl exec -ti metrics-... -- tail -f /tmp/loglast | egrep ' time_total|^jmx_scrape_duration_seconds'
3
3
---
4
4
kind : ConfigMap
5
5
metadata :
10
10
11
11
curl-format.txt : |-
12
12
\n
13
- # ### curl stats ### \n
13
+ # ------ curl stats ------ \n
14
14
time_namelookup %{time_namelookup}\n
15
15
time_connect %{time_connect}\n
16
16
time_appconnect %{time_appconnect}\n
23
23
http_code{url="%{url_effective}"} %{http_code}\n
24
24
size_download{url="%{url_effective}"} %{size_download}\n
25
25
content_type %{content_type}\n
26
+ # ----- curl complete -----\n
27
+ \n
26
28
27
29
setup.sh : |-
28
30
touch /tmp/testlog
76
78
image : solsson/curl@sha256:8c0c5d669b3dd67932da934024252af59fb9d0fa0e5118b5a737b35c5e1487bf
77
79
env :
78
80
- name : MAX_RESPONSE_TIME
79
- value : " 5 "
81
+ value : " 3 "
80
82
# Test set up
81
83
command :
82
84
- /bin/bash
Original file line number Diff line number Diff line change 30
30
image : solsson/kafka-prometheus-jmx-exporter@sha256:07cdc4b446ebe8208950202b924caefadad006ea94ae92d73bef81897df4d5c7
31
31
command :
32
32
- 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
35
37
- -jar
36
38
- jmx_prometheus_httpserver.jar
37
39
- " 5556"
You can’t perform that action at this time.
0 commit comments