gitlab-org--gitlab-foss/lib/tasks/gitlab/track_deployment.rake
Yorick Peterse 499cdf1d19
Added Rake task for tracking deployments
This simply inserts the current GitLab version in the "deployments"
measurement.

Fixes gitlab-com/infrastructure#98
2016-07-19 13:21:09 +02:00

9 lines
286 B
Ruby

namespace :gitlab do
desc 'GitLab | Tracks a deployment in GitLab Performance Monitoring'
task track_deployment: :environment do
metric = Gitlab::Metrics::Metric.
new('deployments', version: Gitlab::VERSION)
Gitlab::Metrics.submit_metrics([metric.to_hash])
end
end