-
Notifications
You must be signed in to change notification settings - Fork 527
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
Bump mimir-prometheus after merge with upstream #1695
Bump mimir-prometheus after merge with upstream #1695
Conversation
9e77502
to
cca25ba
Compare
I'm seeing some errors in the build so I'm taking a look 👀 |
a26e007
to
1527169
Compare
I suggest reviewing this commit by commit knowing that the first one brings all the changes from the vendor update. |
We may want to wait for prometheus/prometheus#10590 |
860792b
to
34279a8
Compare
@pracucci I've changed the first commit in this branch to include the latest changes from mimir-prometheus. As soon as CI passes I think we're good to go. |
34279a8
to
5bbabf7
Compare
@@ -0,0 +1,12 @@ | |||
# Grafana Go regexp package |
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.
I'm surprised to see that this wasn't a dependency before. This is a relevant change.
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.
I think we should migrate Mimir to grafana/regexp
too. I will do it in a separate PR.
@@ -42,6 +39,7 @@ import ( | |||
// DefaultHTTPClientConfig is the default HTTP client configuration. | |||
var DefaultHTTPClientConfig = HTTPClientConfig{ | |||
FollowRedirects: true, | |||
EnableHTTP2: true, |
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.
This replaces the previous env var PROMETHEUS_COMMON_DISABLE_HTTP2
below. But afaik we're not using this.
apiPrefix+"/api/v2/", | ||
api.limitHandler(http.StripPrefix(apiPrefix+"/api/v2", api.v2.Handler)), | ||
api.limitHandler(http.StripPrefix(apiPrefix, api.v2.Handler)), |
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.
This looks like a bugfix. Are we exposing /api/v2 ?
I have reviewed both vendored changes (with a medium-depth review) and Mimir changes to adapt to vendored changes and both look good to me. |
While reviewing this PR I've noticed we were upgrading memberlist too and that was unexpected: |
There are two relevant changes for us. Telegram receiver has been introduced and OpsGenie APIKeyFile config option. We need to add Telegram support and both of them to our firewall. I'm working on it. Will commit changes directly to this PR. |
Done in this commit: 3b60c87 I will keep reviewing this PR tomorrow. |
We've merged prometheus/main into mimir-prometheus/main in grafana/mimir-prometheus#199. This commit brings those changes by updating the vendored dependency of mimir-prometheus. Also brings the changes from grafana/mimir-prometheus@db8c550 which fix a memory leak. Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
Upstream prometheus rules manager Update() method has an extra argument to execute a function before each group rule evaluation. I've extended the interface to include this argument. Also updated all the callers to pass nil meaning the function won't be run. Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
The constructos for both NewRangeQuery and NewInstantQuery now accept QueryOps. So far there is only one opt called EnablePerStepStats which is disabled by default so I figured for now we could pass nil. Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
The initialization constructor of v1.NewAPI now accepts a StatsRendered. I assume we're not using this yet so I'm passing nil. Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
When initializing v1.NewAPI we're passing a compiled Regexp that unmatches the expected type becuase we were importing "regexp" instead of "github.com/grafana/regexp". This commit makes it consistent by replacing "regexp" with "github.com/grafana/regexp" and updating go mod. Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
…file config option Signed-off-by: Marco Pracucci <marco@pracucci.com>
3b60c87
to
cf49e37
Compare
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This upgrade added OAuth2 proxy URL support in prometheus/common#358. We need to block it through our firewall. Done in c2d0ca6 |
👍 Notes:
|
Checked the release notes and I can't see any change that might affect us. |
I also checked diff for the following vendored libs and LGTM:
|
What this PR does
We've merged prometheus/main into mimir-prometheus/main in
grafana/mimir-prometheus#199.
This commit brings those changes by updating the vendored dependency of
mimir-prometheus.
Also brings the changes from
grafana/mimir-prometheus@db8c550
which fix a memory leak.
cc @pracucci you asked me to help with this please take a look 👍
Which issue(s) this PR fixes or relates to
No related issue, simply bumping mimir-prometheus
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]