Skip to content

Instantly share code, notes, and snippets.

@afirth
Created May 29, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afirth/de8dd62365b89677cea8e37fbf2e482a to your computer and use it in GitHub Desktop.
Save afirth/de8dd62365b89677cea8e37fbf2e482a to your computer and use it in GitHub Desktop.
Add jmx_exporter to Camunda BPM
FROM camunda/camunda-bpm-platform:tomcat-7.11.0
## Add prometheus exporter
RUN wget https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.11.0/jmx_prometheus_javaagent-0.11.0.jar -P lib/
#9404 is the reserved prometheus-jmx port
ENV CATALINA_OPTS -javaagent:lib/jmx_prometheus_javaagent-0.11.0.jar=9404:/etc/config/prometheus-jmx.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment