Commit 0ae01954 authored by Imre Farkas's avatar Imre Farkas

Merge branch '121724-snowplow_elasticsearch' into 'master'

Add tracking for cluster application installs

Closes #121724

See merge request gitlab-org/gitlab!23000
parents a35c6cc1 c6527bb3
......@@ -11,6 +11,8 @@ module Clusters
def on_success
app.make_installed!
Gitlab::Tracking.event('cluster:applications', "cluster_application_#{app.name}_installed")
ensure
remove_installation_pod
end
......
......@@ -160,6 +160,12 @@ describe Clusters::Applications::CheckInstallationProgressService, '#execute' do
expect(application).to be_installed
expect(application.status_reason).to be_nil
end
it 'tracks application install' do
expect(Gitlab::Tracking).to receive(:event).with('cluster:applications', "cluster_application_helm_installed")
service.execute
end
end
context 'when installation POD failed' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment