Skip to content

feat: enable built in Prometheus servlet #695

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

Merged
merged 7 commits into from
Jun 16, 2025
Merged

Conversation

razvan
Copy link
Member

@razvan razvan commented Jun 13, 2025

Description

Fixes #694

CI https://testing.stackable.tech/view/02%20Operator%20Tests%20(custom)/job/hdfs-operator-it-custom/24/

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • CRD documentation for all fields, following the style guide.
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible
  • Links to generated (nightly) docs added
  • Release note snippet added

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

@razvan razvan self-assigned this Jun 13, 2025
@razvan razvan changed the title chore: replace JMX exporter with built in Prometheus servlet feat: enable built in Prometheus servlet Jun 13, 2025
@razvan razvan marked this pull request as ready for review June 16, 2025 10:09
@razvan
Copy link
Member Author

razvan commented Jun 16, 2025

Release Notes

The built-in Prometheus servlet is now enabled by default and metrics are available under the /prom path of all UI services.
The metrics exposed by the JMX exporter are now considered deprecated and will be removed in a future release.

@razvan razvan added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jun 16, 2025
@razvan razvan moved this to Development: Waiting for Review in Stackable Engineering Jun 16, 2025
@razvan razvan requested a review from a team June 16, 2025 10:13
@dervoeti dervoeti self-requested a review June 16, 2025 10:25
@dervoeti dervoeti moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Jun 16, 2025
Copy link
Member

@dervoeti dervoeti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just found a small typo, otherwise LGTM once the test passes (seems to be hanging because of external problems?).

Nit pick, feel free to ignore since it doesn't seem to cause problems:
The items in the expected_metrics list are used as regular expressions, it works, but it would be "more correct" if the curly braces were escaped.
Alternative: Maybe assert metric in response.text would also work, then re would not be needed at all. It's less strict though since it doesn't require the string to be at the beginning of the line.

razvan and others added 2 commits June 16, 2025 13:33
@razvan
Copy link
Member Author

razvan commented Jun 16, 2025

Maybe assert metric in response.text would also work, then re would not be needed at all. It's less strict though since it doesn't require the string to be at the beginning of the line.

Yeah I saw that and forgot about it but now that you mentioned it ... I geeked out a little.

@razvan
Copy link
Member Author

razvan commented Jun 16, 2025

I ran the tests locally because it was faster:

--- PASS: kuttl (692.02s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-1_datanode-pvcs-2hdd-1ssd_listener-class-cluster-internal_openshift-false (96.57s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-2_datanode-pvcs-default_listener-class-cluster-internal_openshift-false (127.70s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-2_datanode-pvcs-default_listener-class-external-unstable_openshift-false (128.61s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-2_datanode-pvcs-2hdd-1ssd_listener-class-external-unstable_openshift-false (146.90s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-2_datanode-pvcs-2hdd-1ssd_listener-class-cluster-internal_openshift-false (521.51s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-1_datanode-pvcs-default_listener-class-cluster-internal_openshift-false (97.19s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-1_datanode-pvcs-default_listener-class-external-unstable_openshift-false (99.51s)
        --- PASS: kuttl/harness/smoke_hadoop-3.4.1_zookeeper-3.9.3_zookeeper-latest-3.9.3_number-of-datanodes-1_datanode-pvcs-2hdd-1ssd_listener-class-external-unstable_openshift-false (94.74s)
PASS


@razvan razvan requested a review from dervoeti June 16, 2025 12:21
@razvan razvan enabled auto-merge June 16, 2025 12:21
Copy link
Member

@dervoeti dervoeti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@razvan razvan added this pull request to the merge queue Jun 16, 2025
Merged via the queue into main with commit 2bba315 Jun 16, 2025
17 checks passed
@razvan razvan deleted the chore/remove-jmx-exporter branch June 16, 2025 12:45
@adwk67 adwk67 moved this from Development: In Review to Development: Done in Stackable Engineering Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
Status: Development: Done
Development

Successfully merging this pull request may close these issues.

enable built-in Prometheus servlet
2 participants