-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 prometheus dependency #6403
Conversation
We had to add a replace of prometheus in go mod because thanos is importing an older version and then replacing it.
WithoutLabels and WithLabels methods have dissappeared. Now labels.NewBuilder has to be used.
Update now accepts a new param called ruleGroupPostProcessFunc which is an optional function to be executed after rule group processing. In this case I've set it to nil in the usages i've found.
The NewQueryRange function now accepts QueryOptions so I had to update all the calls. I've set the opts to nil since we're not using them.
2a23034
to
ccdcc02
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.
Great job! Thank you for doing this.
HTTPClientConfig: promConfig.HTTPClientConfig{ | ||
FollowRedirects: true, | ||
}, | ||
HTTPClientConfig: promConfig.DefaultHTTPClientConfig, |
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.
HTTP2Enabled
now defaults to true, should this be documented as a [CHANGE]?
./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell. + ingester 0%
+ distributor 0%
+ querier 0%
+ querier/queryrange 0%
+ iter 0%
+ storage 0%
+ chunkenc 0%
+ logql 0%
+ loki 0% |
Unfortunately this bump breaks GEL as it depends on an older Prometheus version through backend-enterprise-libs :/ |
These metrics were removed unintentionally in grafana#6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
….*` metrics (#6957) * Upgrading prometheus/client_golang to restore go_sched.* metrics These metrics were removed unintentionally in #6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com> * Fixing test to match interface correctly Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
….*` metrics (#6957) * Upgrading prometheus/client_golang to restore go_sched.* metrics These metrics were removed unintentionally in #6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com> * Fixing test to match interface correctly Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
….*` metrics (grafana#6957) * Upgrading prometheus/client_golang to restore go_sched.* metrics These metrics were removed unintentionally in grafana#6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com> * Fixing test to match interface correctly Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
This PR updates prometheus dependency to its latest commit. It comes with quite a few changes so I've made a list of commits that make it easy to review them.