Update usage ping enabled check in redis ordinary counters
We have this check for usage_ping_enabled in redis counter
def increment(redis_counter_key)
return unless Gitlab::CurrentSettings.usage_ping_enabled
Gitlab::Redis::SharedState.with { |redis| redis.incr(redis_counter_key) }
end
We should check for ee instances if customer service is enabled. We could use https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/service_ping/service_ping_settings.rb
This might affect 2 operational metrics.
counts.network_policy_forwards
For instances that have customers enabled and usage_ping disabled, we do not track this 2 metrics.