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

feat!: enable telemetry by default #2137

Merged
merged 12 commits into from
Aug 11, 2023

Conversation

killme2008
Copy link
Contributor

@killme2008 killme2008 commented Aug 10, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Main changes:

  • Remove the greptimedb-telemetry feature in metasrv and datanode.
  • Adds new option enable_telemetry to datanode and metasrv configurations, true by default.
  • Move data_home from FileConfig to StorageConfig in datanode.
  • Adds data_home to metasrv options.
  • Store the installation uuid into data_home directory in datanode and metasrv.
  • Print warning log when enabling telemetry.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@killme2008 killme2008 marked this pull request as ready for review August 10, 2023 09:27
@killme2008 killme2008 changed the title feat: enable telemetry by default feat!: enable telemetry by default Aug 10, 2023
@github-actions github-actions bot added the breaking-change This pull request contains breaking changes. label Aug 10, 2023
@killme2008 killme2008 added C-documentation Improvements or additions to documentation IN THIS REPO docs-required This change requires docs update. labels Aug 10, 2023
@killme2008 killme2008 requested review from paomian and MichaelScofield and removed request for paomian August 10, 2023 13:11
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #2137 (7070cf8) into develop (0b05c22) will decrease coverage by 0.39%.
The diff coverage is 79.43%.

@@             Coverage Diff             @@
##           develop    #2137      +/-   ##
===========================================
- Coverage    84.88%   84.50%   -0.39%     
===========================================
  Files          696      696              
  Lines       110476   110614     +138     
===========================================
- Hits         93781    93469     -312     
- Misses       16695    17145     +450     

@killme2008
Copy link
Contributor Author

@paomian @waynexia @MichaelScofield Please take a look, thank u.

Copy link
Collaborator

@etolbakov etolbakov left a comment

Choose a reason for hiding this comment

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

one small comment, the rest LGTM

@paomian
Copy link
Contributor

paomian commented Aug 11, 2023

LGTM

@killme2008 killme2008 force-pushed the feature/enable-telemetry branch from d1250d6 to e587c2f Compare August 11, 2023 08:26
@killme2008 killme2008 added this pull request to the merge queue Aug 11, 2023
@killme2008 killme2008 removed this pull request from the merge queue due to a manual request Aug 11, 2023
@killme2008 killme2008 force-pushed the feature/enable-telemetry branch from e587c2f to 7070cf8 Compare August 11, 2023 14:08
@killme2008 killme2008 enabled auto-merge August 11, 2023 14:08
@killme2008 killme2008 added this pull request to the merge queue Aug 11, 2023
Merged via the queue into GreptimeTeam:develop with commit 6f40128 Aug 11, 2023
@killme2008 killme2008 deleted the feature/enable-telemetry branch August 11, 2023 15:01
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* feat: remove greptimedb-telemetry feature

* feat: adds enable_telemetry option to metasrv and datanode

* refactor: move data_home from file config to storage config

* feat: store the installation uuid into datanode and metasrv working home

* fix: cargo toml fmt

* test: ignore region failver test when using local fle storage

* test: ignore telemetry reporter in test mode

* feat: print warning log when enabling telemetry

* chore: the telemetry doc link

* chore: remove enable_telemetry from datanode example config file

* refactor: rename GREPTIMEDB_TELEMETRY_CLIENT_REQUEST_TIMEOUT

* chore: rename print_warn_log to print_anonymous_usage_data_disclaimer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This pull request contains breaking changes. C-documentation Improvements or additions to documentation IN THIS REPO docs-required This change requires docs update.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants