Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFRA-423: Enable JMX exporter for OpenMRS #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OPENMRS_DB_USER=openmrs
OPENMRS_DB_PASSWORD=password
OPENMRS_USER=superman
OPENMRS_PASSWORD=Admin123
OPENMRS_JAVA_OPTS=
OPENMRS_JAVA_OPTS=-Xmx1024m -Xms512m -javaagent:/monitoring/jmx_prometheus_javaagent-0.20.0.jar=8088:/monitoring/prometheus-jmx-config.yaml

# OpenELIS
OPENELIS_DB_USER=clinlims
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ services:
- "${BAHMNI_HOME_PATH:-bahmni-home}:/home/bahmni/"
- "${BAHMNI_OBSCALCULATOR_PATH:-bahmni-obscalculator}:/usr/local/tomcat/.OpenMRS/obscalculator/"
- ./properties/openmrs/:/etc/properties/
- ./monitoring/:/monitoring/
- "${BAHMNI_IMAGE_PATH:-bahmni-images}:/home/bahmni/patient_images"
ports:
- "${JMX_EXPORTER_PORT:-8088}:8088"

# MySQL
mysql:
Expand Down
Binary file added monitoring/jmx_prometheus_javaagent-0.20.0.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions monitoring/prometheus-jmx-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false
rules:
- pattern: ".*"