Commit c6527bb3 authored by Ryan Cobb's avatar Ryan Cobb

Add tracking for cluster application installs

parent 00d09aab
...@@ -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