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

query,store: Improve replica flag handling #7855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Oct 23, 2024

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Add a string utility parsing function to improve the handling of replica label flags. This allows for easier handling of flags when multiple replica labels are need.

  • Split flag parts that are comma separated.
  • Remove any empty strings.
  • Sort and deduplicate the slice.

For example in the case of multiple replica labels like: --query.replica-label=prometheus_replica,thanos_rule_replica

Verification

Add a string utility parsing function to improve the handling of replica
label flags. This allows for easier handling of flags when multiple
replica labels are need.
* Split flag parts that are comma separated.
* Remove any empty strings.
* Sort and deduplicate the slice.

For example in the case of multiple replica labels like:
`--query.replica-label=prometheus_replica,thanos_rule_replica`

Signed-off-by: SuperQ <[email protected]>
@SuperQ SuperQ changed the title Improve replica flag handling query,store: Improve replica flag handling Oct 23, 2024
@SuperQ
Copy link
Contributor Author

SuperQ commented Oct 23, 2024

👓 @wallee94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant