2016-07-18 08:11:36 -04:00
|
|
|
namespace :gitlab do
|
|
|
|
desc 'GitLab | Tracks a deployment in GitLab Performance Monitoring'
|
|
|
|
task track_deployment: :environment do
|
2017-02-22 13:18:40 -05:00
|
|
|
metric = Gitlab::Metrics::Metric
|
|
|
|
.new('deployments', version: Gitlab::VERSION)
|
2016-07-18 08:11:36 -04:00
|
|
|
|
|
|
|
Gitlab::Metrics.submit_metrics([metric.to_hash])
|
|
|
|
end
|
|
|
|
end
|