Skip to content

fix(target-allocator): Stop pretending to be Prometheus 2.55.1#4218

Merged
jaronoff97 merged 1 commit intoopen-telemetry:mainfrom
ChristianCiach:allocator-remove-hardcoded-prometheus-version
Jul 25, 2025
Merged

fix(target-allocator): Stop pretending to be Prometheus 2.55.1#4218
jaronoff97 merged 1 commit intoopen-telemetry:mainfrom
ChristianCiach:allocator-remove-hardcoded-prometheus-version

Conversation

@ChristianCiach
Copy link
Contributor

@ChristianCiach ChristianCiach commented Jul 24, 2025

Description:

Stop pretending to be Prometheus 2.55.1 when generating the Scrape-Configs using PrometheusCRs.

I mentioned in #4000 (comment) that this hardcoded version number results in some ugly warnings. I don't know if there are any worse consequences than just the warnings.

Anyway, @swiatekm agreed that this hardcoded version should be removed in #4000 (comment).

Link to tracking Issue(s): #4000 (comment).

Testing:

No testing has been performed. I don't know why the version has been set to 2.55.1 to begin with, and I don't know what happens when we stop doing this. That's why this PR is a draft.

Documentation:

Signed-off-by: Christian Ciach <christian.ciach@gmail.com>
@ChristianCiach ChristianCiach requested a review from a team as a code owner July 24, 2025 21:01
@ChristianCiach
Copy link
Contributor Author

The faked prometheus version was originally added by #3831, which happens to be authored by @swiatekm. So if he says that this should now be removed, he probably knows what he's talking about 😄 So I will undraft this PR,

@ChristianCiach ChristianCiach marked this pull request as draft July 24, 2025 21:06
@ChristianCiach ChristianCiach marked this pull request as ready for review July 24, 2025 21:06
@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 25, 2025
Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for cleaning this up.

@jaronoff97 jaronoff97 merged commit 30c2c04 into open-telemetry:main Jul 25, 2025
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants