Add ability to have ServicePing enabled without automatic submission of usage data
Problem
Started from gitlab-org&7388 (comment 869532821)
Customers need to be able to:
- Disable Service Ping
- The instance will still run the counts for redis, etc. (the collector runs as expected) ...
Currently its not the case because in many places around the codebase we have checks for ServicePing to be enabled. Example. This prevents metrics from being collected.
Proposal
One of solutions could be add a new option "Submit usage data automatically" on Service Ping settings page. If we keep this option enables by default, it would let concerned users to turn if off and submit usage data manually when required.
This option then can be checked here https://gitlab.com/gitlab-org/gitlab/blob/master/app/services/service_ping/service_ping_settings.rb#L7-7
Result
Next steps (if any)
Edited by Niko Belokolodov