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

Upgrade to latest dskit and weaveworks/common #2309

Merged
merged 5 commits into from
Jul 6, 2022
Merged

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Jul 4, 2022

What this PR does

Upgrade to latest dskit and weaveworks/common, where dskit/middleware.PrometheusGRPCUnaryInstrumentation moves to weaveworks/common/middleware.UnaryClientInstrumentInterceptor.

Which issue(s) this PR fixes or relates to

Checklist

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

@aknuds1 aknuds1 added the chore label Jul 4, 2022
@aknuds1 aknuds1 force-pushed the chore/upgrade-dskit branch 2 times, most recently from 3b64850 to 6679076 Compare July 4, 2022 14:00
@pracucci pracucci self-requested a review July 4, 2022 14:58
ExcludeRequestInLog bool `yaml:"-"`
RegisterInstrumentation bool `yaml:"register_instrumentation"`
ExcludeRequestInLog bool `yaml:"-"`
DisableRequestSuccessLog bool `yaml:"-"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

We want to disable this in Mimir. We can do it in the same place where we set ExcludeRequestInLog too:
https://github.com/grafana/mimir/blob/main/pkg/mimir/mimir.go#L125

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @pracucci, will look into it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pracucci I've disabled it.

@aknuds1 aknuds1 force-pushed the chore/upgrade-dskit branch 2 times, most recently from f4d8f82 to 693fc03 Compare July 5, 2022 07:21
@aknuds1
Copy link
Contributor Author

aknuds1 commented Jul 5, 2022

After discussing with @pracucci, we've agreed I'm going to make a PR to weaveworks/common to hide new configuration parameters from its dependency.

@aknuds1 aknuds1 changed the title Upgrade to latest dskit and weaveworks/common WIP: Upgrade to latest dskit and weaveworks/common Jul 5, 2022
@aknuds1
Copy link
Contributor Author

aknuds1 commented Jul 5, 2022

PR to weaveworks/common made.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1
Copy link
Contributor Author

aknuds1 commented Jul 6, 2022

I've upgraded to the latest weaveworks/common, which removes the new TLS config parameters.

@aknuds1 aknuds1 requested a review from pracucci July 6, 2022 11:20
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM! I don't feel strong having -server.log-request-at-info-level-enabled as basic instead of advanced.

pkg/mimir/mimir.go Show resolved Hide resolved
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 marked this pull request as ready for review July 6, 2022 12:38
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 requested a review from pracucci July 6, 2022 12:44
@aknuds1
Copy link
Contributor Author

aknuds1 commented Jul 6, 2022

@pracucci I added a couple of changelog entries from dskit. Should I keep them?

Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci enabled auto-merge (squash) July 6, 2022 12:49
@aknuds1 aknuds1 changed the title WIP: Upgrade to latest dskit and weaveworks/common Upgrade to latest dskit and weaveworks/common Jul 6, 2022
@pracucci pracucci disabled auto-merge July 6, 2022 13:00
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 merged commit b5e7bce into main Jul 6, 2022
@aknuds1 aknuds1 deleted the chore/upgrade-dskit branch July 6, 2022 15:25
masonmei pushed a commit to udmire/mimir that referenced this pull request Jul 11, 2022
* Upgrade to latest dskit and weaveworks/common
* Fix flaky tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants