Skip to content
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

Disable logging of migration data when UTF-8 Strict Mode is enabled #9076

Closed

Conversation

grobinson-grafana
Copy link
Contributor

@grobinson-grafana grobinson-grafana commented Aug 22, 2024

What this PR does

This commit disables logging of the migration code that assists users to enable UTF-8 Strict Mode. When UTF-8 strict mode is enabled, these logs are no longer needed, and should be disabled to reduce log volume.

validateMatchersInConfigDesc is a special function added to Mimir to log Alertmanager configurations that are incompatible with UTF-8. It does this by unmarshalling each configuration a second time, but with different options and a specialized logger than injects the Tenant ID. It is intended to provide the data to Mimir server operators that helps them identify incompatible tenant configurations before enabling the utf8-strict-mode flag. It's purpose is nothing else but to log this data. Once UTF-8 strict mode is enabled, there is no need to call this function anymore.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@grobinson-grafana grobinson-grafana requested review from a team as code owners August 22, 2024 21:27
@grobinson-grafana grobinson-grafana self-assigned this Aug 22, 2024
@grobinson-grafana grobinson-grafana marked this pull request as draft August 22, 2024 21:51
This commit updates Alertmanager to disable logging of the migration
code that assists users to enable UTF-8 Strict Mode. When UTF-8
strict mode is enabled, these logs are no longer needed, and should
be disabled to reduce log volume.
@grobinson-grafana grobinson-grafana force-pushed the grobinson/reduce-logging-utf8-strict-mode branch from 52d4185 to 37de29b Compare August 23, 2024 09:01
@grobinson-grafana grobinson-grafana marked this pull request as ready for review August 23, 2024 10:33
@grobinson-grafana grobinson-grafana changed the title Disable logging of migration code when UTF-8 Strict Mode is enabled Disable logging of migration data when UTF-8 Strict Mode is enabled Aug 23, 2024
@grobinson-grafana grobinson-grafana deleted the grobinson/reduce-logging-utf8-strict-mode branch September 19, 2024 16:10
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