projects
/
demos
/
kafka
/
monitoring
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c8eef
)
Enabled the default metrics in the Bitnami image for Zookeeper
author
Kai Moritz
<kai@juplo.de>
Sun, 19 Feb 2023 19:33:40 +0000
(20:33 +0100)
committer
Kai Moritz
<kai@juplo.de>
Tue, 21 Feb 2023 22:13:58 +0000
(23:13 +0100)
See: https://hub.docker.com/r/bitnami/zookeeper/
prometheus.yml
patch
|
blob
|
history
zookeeper/Dockerfile
patch
|
blob
|
history
diff --git
a/prometheus.yml
b/prometheus.yml
index
82130e6
..
dbaccb2
100644
(file)
--- a/
prometheus.yml
+++ b/
prometheus.yml
@@
-30,6
+30,7
@@
scrape_configs:
static_configs:
- targets:
- "zookeeper:80"
+ - "zookeeper:7000"
labels:
env: "dev"
relabel_configs:
diff --git
a/zookeeper/Dockerfile
b/zookeeper/Dockerfile
index
13484d6
..
5ba5ea6
100644
(file)
--- a/
zookeeper/Dockerfile
+++ b/
zookeeper/Dockerfile
@@
-6,4
+6,5
@@
USER root
RUN chmod -R 777 /opt/prometheus
USER 1001
+ENV ZOO_ENABLE_PROMETHEUS_METRICS=true
ENV JVMFLAGS=-javaagent:/opt/prometheus/jmx_prometheus_javaagent.jar=80:/opt/prometheus/config.yml