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

Chore: Extract CustomTrackersConfig from the activeseries package. #9435

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

Conversation

ying-jeanne
Copy link
Contributor

@ying-jeanne ying-jeanne commented Sep 26, 2024

What this PR does

This pull request seeks to extract the CustomTrackersConfig struct from the activeseries package. The reason for this is that pkg/util/validation depends on github.com/grafana/mimir/pkg/ingester/activeseries. If we introduce any services invoked by activeseries, they won't be able to depend on validation.Overrides, since it would result in a circular import problem.

In this PR, I've introduced activeseriesmodel, which will be utilized by both activeseries and validation. The entire PR should be Noop

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

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

@ying-jeanne ying-jeanne changed the title Chore: split out models from activeseries package Chore: Split CustomTrackersConfig out from activeseries package Sep 26, 2024
@ying-jeanne ying-jeanne changed the title Chore: Split CustomTrackersConfig out from activeseries package Chore: Extract CustomTrackersConfig from the activeseries package. Sep 26, 2024
// matches returns a PreAllocDynamicSlice containing only matcher indexes which are matching
func (m *Matchers) matches(series labels.Labels) preAllocDynamicSlice {
// Matches returns a PreAllocDynamicSlice containing only matcher indexes which are matching
func (m *Matchers) Matches(series labels.Labels) PreAllocDynamicSlice {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

had to change functions to public since they are used in activeseries package

@ying-jeanne ying-jeanne marked this pull request as ready for review September 26, 2024 17:47
@ying-jeanne ying-jeanne requested a review from a team as a code owner September 26, 2024 17:47
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