Skip to content

Commit 1c0b495

Browse files
add jmx exporter
1 parent 7532842 commit 1c0b495

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ COPY --link --chown=${SOLR_UID}:${SOLR_GID} \
1919
security.json \
2020
/var/solr/data/security.json
2121

22+
WORKDIR /jmx
23+
ADD --link --chmod=644 https://github.com/prometheus/jmx_exporter/releases/download/1.4.0/jmx_prometheus_javaagent-1.4.0.jar jmx_prometheus_javaagent.jar
24+
COPY --chmod=644 jmx.yml ./
25+
26+
WORKDIR /opt/solr
2227
USER solr
2328
VOLUME ["${SOLR_CORE_DIR}/data"]

jmx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rules:
2+
- pattern: ".*"
3+

0 commit comments

Comments
 (0)