Skip to content

feat: update prometheus to 1.5.0#68

Open
ash-thakur-rh wants to merge 2 commits intoeclipse-jkube:mainfrom
ash-thakur-rh:updates/prometheus-latest
Open

feat: update prometheus to 1.5.0#68
ash-thakur-rh wants to merge 2 commits intoeclipse-jkube:mainfrom
ash-thakur-rh:updates/prometheus-latest

Conversation

@ash-thakur-rh
Copy link
Copy Markdown

Summary

  • Bump Prometheus JMX Exporter from 0.20.0 to 1.5.0 across all Java images (java, java-17, java-11)
  • Add new module org.eclipse.jkube.prometheus/1.5.0 and legacy module jboss.container.prometheus/jkube-1.5.0
  • Pin prometheus version in org.eclipse.jkube.s2i/bash/module.yaml to avoid ambiguity with multiple versions available
  • Add Prometheus sanity tests to all test scripts (executable check, config file presence, javaagent output, AB_PROMETHEUS_OFF disable, JBOSS_CONTAINER_PROMETHEUS_MODULE env var)

Details

Prometheus JMX Exporter 1.5.0 (https://github.com/prometheus/jmx_exporter/releases/tag/1.5.0):

  • Supports Java 8+, compatible with all three images (Java 11, 17, 21)
  • Adds support for environment variable injection for HTTP Basic auth and JMX authentication

Modules added:

  • modules/org.eclipse.jkube.prometheus/1.5.0/ : used by jkube-java (via org.eclipse.jkube.s2i.bash)
  • modules/jboss.container.prometheus/jkube-1.5.0/ : used by jkube-java-11 and jkube-java-17

Tests added (all 3 test scripts):

  • Verify prometheus-opts script is executable
  • Verify jmx-exporter-config.yaml config file exists
  • Verify prometheus-opts produces correct -javaagent output with default port 9779
  • Verify AB_PROMETHEUS_OFF=true disables prometheus agent
  • Verify JBOSS_CONTAINER_PROMETHEUS_MODULE env var is set

Test plan

  • Build all three images (jkube-java, jkube-java-17, jkube-java-11)
  • Run scripts/test-jkube-java.sh, scripts/test-jkube-java-17.sh, scripts/test-jkube-java-11.sh
  • Verify Prometheus JMX Exporter agent loads correctly at runtime

@ash-thakur-rh ash-thakur-rh changed the title chore: update prometheus to 1.5.0 feat: update prometheus to 1.5.0 May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant