Skip to content

Query delivery metrics from gitlab-ops tenant ID

Jenny Kim requested to merge jennykim/fix-delivery-metrics-tenant-id into master

What does this MR do and why?

After release_status task was implemented for metrics scheduled job, it never was able to fetch the metrics properly because the mimir url source was set to gitlab-gprd by default.

When we create the delivery metrics, the delivery-metrics services runs in ops, so it gets stored in gitlab-ops mimir source.

This MR makes fetching delivery metrics pull from ops mimir source instead of gprd.

Tested on commit on ops: https://ops.gitlab.net/gitlab-org/release/tools/-/jobs/14198793

...
Inside of update_monthly_release_status -- {:monthly_status=>1}
...
Inside of update_patch_release_status -- {:patch_status=>1}
...

Relates to: gitlab-com/gl-infra/delivery#20181 (closed)

Feature flag for updating metrics: release_status_metric_update

Edited by Jenny Kim

Merge request reports