Skip to content

Set prometheus adapter version#758

Open
hanzjk wants to merge 1 commit intowso2:mainfrom
hanzjk:setup-issues
Open

Set prometheus adapter version#758
hanzjk wants to merge 1 commit intowso2:mainfrom
hanzjk:setup-issues

Conversation

@hanzjk
Copy link
Copy Markdown
Contributor

@hanzjk hanzjk commented Apr 27, 2026

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.

There is an unintended bug in OpenChoreo where it pulls the latest adapter image by default, even when a specific module version is provided. As a workaround, we had to explicitly set the adapter version. This issue was not detected earlier because the latest image earlier was working fine.

However, the latest image has since changed, and the metrics-adapter-prometheus pod is now failing with a configuration error. Therefore, we have explicitly set the adapter version.

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter �N/A� plus brief explanation of why there�s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type �Sent� when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type �N/A� and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • Chores
    • Pinned Prometheus metrics adapter to version 0.2.4 across observability deployments for consistency and stability.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 27, 2026

📝 Walkthrough

Walkthrough

Deployment scripts are updated to explicitly set the Prometheus adapter image tag to 0.2.4 in Helm release configurations. This pins the specific adapter version alongside the existing chart version 0.2.4 during installation and upgrade operations.

Changes

Cohort / File(s) Summary
Prometheus Adapter Image Tagging
deployments/quick-start/install.sh, deployments/scripts/setup-openchoreo.sh
Added explicit Helm --set parameter to pin adapter.image.tag to 0.2.4 alongside the chart version specification.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A version, pinned tight, oh what a sight!
The adapter now dons its 0.2.4 coat,
Consistent and clear, both here and there,
No more guessing games—just smooth sailing afloat! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description contains only the Purpose section with a clear explanation of the bug and fix; most required template sections are incomplete or empty. Complete the remaining sections: Goals, Approach, Release note, Documentation, Security checks (yes/no answers), and other applicable sections. At minimum, provide Goals, Approach, and verify security checks.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main change: explicitly setting the Prometheus adapter version to 0.2.4 in deployment scripts.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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