Welcome to mirror list, hosted at ThFree Co, Russian Federation.

track_deployment.rake « gitlab « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f101aea3037e126118494ab87be58976c5a45b8 (plain)
1
2
3
4
5
6
7
8
9
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