Skip to content

Add delivery_deployment_failed_atleast_once metric that gets set when coordinated pipeline fails

Jenny Kim requested to merge jk/delivery-deployments-failed-metric into master

For issue: gitlab-com/gl-infra/delivery#2837 (closed) to create a metric to track number of deployment pipelines with at least one failure

  • Implements delivery_deployment_failed_atleast_once metric
  • Adds ReleaseTools::Tasks::Metrics::TrackDeploymentFailedAtleastOnce class to set the metric
    • Sets the metric to 1, with label for deploy version
  • Adds a metrics rake task to call execute on this class
  • Adds coordinated pipeline job metrics:deployment_failed_atleast_once to call the rake task when a deploy job fails. It's similar to the metrics:end_time job, except it only calls it when any job fails in the pipeline.
Edited by Jenny Kim

Merge request reports

Loading