-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Copy cortex/pkg/configs
package dependency into Loki
#5139
Conversation
cortex/pkg/configs
package dependency into Loki
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9ae9a4f
to
293a719
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of the promql_legacy, I'm not a super fan of introducing this one this can be confusing.
I suggest we find out why it's required and get rids of the tests.
Good point. I looked for it and:
So yes, we have the option to drop support for v1 and that would allow us to drop |
+1 to remove
|
293a719
to
36be625
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. nice work @DylanGuedes 👍
@@ -33,6 +33,38 @@ The output is incredibly verbose as it shows the entire internal config struct u | |||
|
|||
### Loki | |||
|
|||
#### Dropped support for old Prometheus rules configuration format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
@cyriltovena can you take a look again? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- This allow us to remove the `legacy_promql` implementation - If a rulesconfig is received in v1 format, we output a specific error, so we can differentiate between a unknown version and a v1 one.
- Added them as we dropped support for legacy promql rules configuration which might be a breaking change for some environments.
f8b12cd
to
5992a73
Compare
What this PR does / why we need it:
As a part of removing Loki dependency on cortex packages, we decided to copy the
configs
package from cortex to Loki itself.Obs: the huge diff is mostly because of the test suite under
configs/legacy_promql
.Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
N/A
Checklist
CHANGELOG.md
about the changes.