Skip to content

native-histograms: Fixed PrometheusProto scrape format preference.#13010

Merged
bwplotka merged 1 commit intomainfrom
native-hist-switch
Oct 19, 2023
Merged

native-histograms: Fixed PrometheusProto scrape format preference.#13010
bwplotka merged 1 commit intomainfrom
native-hist-switch

Conversation

@bwplotka
Copy link
Copy Markdown
Member

Broken by #12738. We have to update both global variables (as GlobalConfig is not a pointer here). DefaultConfig is used when no global: section is provided, whereas DefaultGlobalConfig is used when it's provided and for individual scrape configs.

Reported on #prometheus-dev (thanks to @beorn7): https://cloud-native.slack.com/archives/C01AUBA4PFE/p1697733267205649

Tested manually, it would be nice to add test at some point (quick fix for now).

Broken by #12738. We have to update both global variables (as GlobalConfig is not a pointer here).
DefaultConfig is used when no global: section is provided, whereas DefaultGlobalConfig is used when it's provided and for individual scrape configs.

Reported on #prometheus-dev (thanks to @beorn7): https://cloud-native.slack.com/archives/C01AUBA4PFE/p1697733267205649

Tested manually, it would be nice to add test at some point (quick fix for now).

Signed-off-by: bwplotka <bwplotka@gmail.com>
@beorn7
Copy link
Copy Markdown
Member

beorn7 commented Oct 19, 2023

Let's first base this on top of the release-2.48 branch because we need it in the next RC.

Copy link
Copy Markdown
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

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

Thank you very much for the quick fix. Approved modulo merge into release-2.48 first.

@bwplotka bwplotka changed the base branch from main to release-2.48 October 19, 2023 19:28
@bwplotka bwplotka changed the base branch from release-2.48 to main October 19, 2023 19:32
@bwplotka
Copy link
Copy Markdown
Member Author

bwplotka commented Oct 19, 2023

PR that broke it was specifically excluded from the release-2.48 (see #12985 description). I don't know why, probably @LeviHarrison and @roidelapluie don't like me. Or they had instinct it was broken 🙃

So merging it into main.

@bwplotka bwplotka merged commit 6d08331 into main Oct 19, 2023
@bwplotka bwplotka deleted the native-hist-switch branch October 19, 2023 19:38
@LeviHarrison
Copy link
Copy Markdown
Contributor

That would be the foresight of @bboreham. Thanks for the quick fix though!

@bwplotka
Copy link
Copy Markdown
Member Author

Yea, no worries, just let's be explicit why not in the PR description next time on the reasoning (I still don't know why not). 🤗

@bboreham
Copy link
Copy Markdown
Member

bboreham commented Oct 20, 2023

From our conversation I said "It's a judgement call. [...] 12738 is changing the way configuration works. I think the old way is marked experimental, but still this is the one I would worry about."

[and all the others that were cherry-picked were bug-fixes or very simple]

@LeviHarrison
Copy link
Copy Markdown
Contributor

Yes and I had technically cut 2.48 a week earlier, before the PR had been merged, but there was a hold up with dependency updates.

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.

5 participants