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 ...@@ -11,6 +11,8 @@ module Clusters
def on_success def on_success
app.make_installed! app.make_installed!
Gitlab::Tracking.event('cluster:applications', "cluster_application_#{app.name}_installed")
ensure ensure
remove_installation_pod remove_installation_pod
end end
......
...@@ -160,6 +160,12 @@ describe Clusters::Applications::CheckInstallationProgressService, '#execute' do ...@@ -160,6 +160,12 @@ describe Clusters::Applications::CheckInstallationProgressService, '#execute' do
expect(application).to be_installed expect(application).to be_installed
expect(application.status_reason).to be_nil expect(application.status_reason).to be_nil
end end
it 'tracks application install' do
expect(Gitlab::Tracking).to receive(:event).with('cluster:applications', "cluster_application_helm_installed")
service.execute
end
end end
context 'when installation POD failed' do 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