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

Add -usage-stats.installation-mode configuration to track the installation mode #3244

Merged
merged 11 commits into from
Oct 20, 2022

Conversation

Rustin170506
Copy link
Contributor

@Rustin170506 Rustin170506 commented Oct 18, 2022

What this PR does

  • Add -usage-stats.installation-mode configuration to track the installation mode.

Which issue(s) this PR fixes or relates to

Part of #3149

Checklist

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

@aknuds1
Copy link
Contributor

aknuds1 commented Oct 18, 2022

Should this be in draft mode, or is it ready for review?

pkg/usagestats/reporter.go Outdated Show resolved Hide resolved
pkg/usagestats/reporter.go Outdated Show resolved Hide resolved
@aknuds1 aknuds1 self-requested a review October 18, 2022 06:59
@aknuds1 aknuds1 added the enhancement New feature or request label Oct 18, 2022
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.

Good job! I left a couple of minor comments. Next step is to add it to jsonnet and helm, but I'm happy if you follow up with separate PRs.

pkg/usagestats/reporter.go Outdated Show resolved Hide resolved
pkg/usagestats/reporter.go Outdated Show resolved Hide resolved
Rustin170506 and others added 7 commits October 18, 2022 20:34
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marco Pracucci <marco@pracucci.com>
@Rustin170506 Rustin170506 marked this pull request as ready for review October 18, 2022 12:58
@Rustin170506 Rustin170506 requested review from osg-grafana and a team as code owners October 18, 2022 12:58
@Rustin170506
Copy link
Contributor Author

Rustin170506 commented Oct 18, 2022

Next step is to add it to jsonnet and helm, but I'm happy if you follow up with separate PRs.

Thanks for your review. I also prefer to update it in the next PR because I need more time to update both the helm and the jsonnet templates.

@Rustin170506 Rustin170506 requested review from pracucci and removed request for aknuds1 and pstibrany October 18, 2022 13:03
@krajorama
Copy link
Contributor

Next step is to add it to jsonnet and helm, but I'm happy if you follow up with separate PRs.

Thanks for your review. I also prefer to update it in the next PR because I need more time to update both the helm and the jsonnet templates.

I think for helm it would make sense to add it as a CLI flag on all components and not part of the YAML config template. Since there would be no need to change it, doesn't affect how metrics are handled and makes it hard to overwrite by accident.

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) October 19, 2022 06:55
@pracucci
Copy link
Collaborator

@hi-rustin Are you going to take care of adding the CLI flag to jsonnet and Helm, or should we delegate to someone else?

@pracucci
Copy link
Collaborator

Oh, I almost forgot. Please add an entry to docs/sources/operators-guide/configure/about-anonymous-usage-statistics-reporting.md to mention we're tracking the installation mode as well. In the section "Which information is collected", I would add a new entry under "Information about the Mimir cluster and version", something like "- The installation mode used to deploy Mimir, such as helm.".

@Rustin170506
Copy link
Contributor Author

Are you going to take care of adding the CLI flag to jsonnet and Helm, or should we delegate to someone else?

I'll take care it.

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) October 20, 2022 06:35
@pracucci pracucci merged commit 3488332 into grafana:main Oct 20, 2022
@Rustin170506 Rustin170506 deleted the rustin-patch-track branch October 20, 2022 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants