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
nixos/netdata: add config option for disabling analytics #97361
nixos/netdata: add config option for disabling analytics #97361
Conversation
0a5e53a
to
5c287e6
Compare
merge. anyone? :) |
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!
As a note, Netdata is now switching from Google Analytics to a self-hosted solution. This seems to apply to versions 1.29.4 and up. The current version in nixpkgs master is 1.29.3, so it would still send to Google Analytics as far as I can tell, but I'll make note of it in the option description. |
5c287e6
to
4c6d35b
Compare
4c6d35b
to
65b5aaf
Compare
65b5aaf
to
6fd9cce
Compare
Option disables analytics through the DO_NOT_TRACK environment variable, as detailed in https://learn.netdata.cloud/docs/agent/anonymous-statistics Default is analytics off
6fd9cce
to
28ed298
Compare
@ofborg test netdata |
Sorry for the thousands of roundtrips! |
Add
services.netdata.enableAnalyticsReporting
(default true), an option that sets aDO_NOT_TRACK
environment variable to inform Netdata that it should not send usage statistics.Motivation for this change
Netdata sends usage statistics to Google Analytics by default. There is an opt out mechanism that requires either placing a file called
.opt-out-from-anonymous-statistics
in Netdata's config directory, or setting theDO_NOT_TRACK
environment variable; the latter seemed like the easier solution.There is no way to opt out via the config file, so this necessitates a new option. The option defaults to true for consistency with upstream.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)I checked if the systemd unit is configured with the environment variable properly, but did not try to verify whether or not Netdata actually sends or doesn't send analytics according to it.