-
Notifications
You must be signed in to change notification settings - Fork 41
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
build(deps): bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 #1247
build(deps): bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 #1247
Conversation
@dependabot rebase |
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.12.2...v1.13.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
bdd51a0
to
c942877
Compare
I've been working on this. The tests were failing and the cause of the issue was that I updated KFM code to comply with the new signatures. After reading the changelog it seems we should be safe to update too. The two most important changes seem to be:
If the tests pass I think we should be ok to merge. |
@@ -26,13 +28,13 @@ func (t *httpAPIMock) QueryExemplars(ctx context.Context, query string, startTim | |||
} | |||
|
|||
// performs a query for the kafka metrics. | |||
func (t *httpAPIMock) Query(ctx context.Context, query string, ts time.Time) (pModel.Value, pV1.Warnings, error) { | |||
func (t *httpAPIMock) Query(ctx context.Context, query string, ts time.Time, opts ...pV1.Option) (pModel.Value, pV1.Warnings, error) { |
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.
cc @pb82 to review the changes in this PR.
I think with the changes we've done in this PR we are ok. We don't need to take the options into account at all due to this is part of the httpAPIMock
type which is a mock and we don't need to process them at all.
Independently on that maybe we should consider if it would be interesting to process the options when using the real client in a future PR if we deem it would be useful. cc @pb82
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.
thanks for updating this @miguelsorianod
Looks like the only available option at the moment is a timeout: https://github.com/prometheus/client_golang/blob/83d56b1144a0c2eb10d399e7abbae3333bebc463/api/prometheus/v1/api.go#L820
But regardless, it can be useful in the future.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1247 +/- ##
=======================================
Coverage 82.89% 82.89%
=======================================
Files 137 137
Lines 12057 12057
=======================================
Hits 9995 9995
Misses 1697 1697
Partials 365 365
Flags with carried forward coverage won't be shown. Click here to find out more. |
@dependabot merge |
Bumps github.com/prometheus/client_golang from 1.12.2 to 1.13.0.
Release notes
Sourced from github.com/prometheus/client_golang's releases.
... (truncated)
Changelog
Sourced from github.com/prometheus/client_golang's changelog.
Commits
64435fc
Cut 1.13.0 (#1110)5b7e8b2
collectors.GoCollector: Added rule support for granular metric configuration....d44fbbe
Fix build against GopherJS (#897)1638da9
testutil: Add ScrapeAndCompare (#1043)c576b95
Generate new Go runtime metrics for go 1.19 (#1105)618194d
fix assorted oddities found by golangci-lint (#1040)c7488be
Added exemplar support to http middleware. (#1055)3faf3ba
Fixed support for unordered input of exemplars. (#1100)44ce5e1
Ensure tests verify request params (#1047)807b1ee
explicitly add +inf bucket in withExemplarsMetric (#1094)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)