debian-mirror-gitlab/lib/tasks/gitlab/track_deployment.rake

10 lines
286 B
Ruby
Raw Normal View History

2016-08-24 12:49:21 +05:30
namespace :gitlab do
desc 'GitLab | Tracks a deployment in GitLab Performance Monitoring'
task track_deployment: :environment do
2017-08-17 22:00:37 +05:30
metric = Gitlab::Metrics::Metric
.new('deployments', version: Gitlab::VERSION)
2016-08-24 12:49:21 +05:30
Gitlab::Metrics.submit_metrics([metric.to_hash])
end
end