Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG MAVEN_PROXY_PASSWORD
ARG POSTGRESQL_VERSION
ARG MYSQL_VERSION

ARG JMX_PROMETHEUS_VERSION=0.12.0
ARG JMX_PROMETHEUS_VERSION=1.0.1

RUN apk add --no-cache \
bash \
Expand Down
2 changes: 2 additions & 0 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ services:
ports:
- "8080:8080"
- "9404:9404"
volumes:
- $PWD/prometheus-jmx.yml:/camunda/javaagent/prometheus-jmx.yml
restart: unless-stopped

camunda-password-file:
Expand Down
5 changes: 5 additions & 0 deletions test/prometheus-jmx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
startDelaySeconds: 0
ssl: false

rules:
- pattern: "java.lang:type=ClassLoading"
2 changes: 1 addition & 1 deletion test/test-prometheus-jmx-tomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ _log "Server started"

grep_log "Enabling Prometheus JMX Exporter on port" || _exit 2 "Prometheus JMX Exporter not enabled"

curl -s http://localhost:9404/metrics | grep -q "jvm_info" || _exit 3 "Prometheus metrics not available"
curl -s http://localhost:9404/metrics | grep -q "jvm_classes_currently_loaded" || _exit 3 "Prometheus metrics not available"

_exit 0 "Test successfull"
2 changes: 1 addition & 1 deletion test/test-prometheus-jmx-wildfly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ _log "Server started"

grep_log "Enabling Prometheus JMX Exporter on port" || _exit 2 "Prometheus JMX Exporter not enabled"

curl -s http://localhost:9404/metrics | grep -q "jvm_info" || _exit 3 "Prometheus metrics not available"
curl -s http://localhost:9404/metrics | grep -q "jvm_classes_currently_loaded" || _exit 3 "Prometheus metrics not available"

_exit 0 "Test successfull"