Skip to content

Create deployment_blocker metrics to display in Grafana

What does this MR do and why?

Describe in detail what your merge request does and why.

This creates a new metric delivery_deployment_blocker to capture the following attributes and display them to Grafana:

  • Its value is equal to the total number of deployment blockers encountered.
  • It will have the following labels:
    • blockers_per_category
    • hours_gprd_blocked
    • hours_gstg_blocked
    • root_cause
    • week

Feature flag: deployment_blockers_metrics

This is related to this issue where we want to visualize the trend of reoccurring root causes of the deployment blockers. As we are improving the processes over time, we want to see its effects on the trend.

Content

  • Creation of BlockersMetrics class to emit the delivery_deployment_blocker metric with its labels
  • Refactor BlockersReport and create BlockersCalculator class to separate the blockers calculation as its methods are needed by BlockersMetrics
  • Create deployments:blockers_metrics to call execute the BlockersMetrics
  • Add that rake task to the record-deployment-blockers job of the CI automation stage
  • Add the new metric to the delivery-metrics

Author Check-list

  • Has documentation been updated?

Merge request reports

Loading