Skip to content

Draft: feat(periodic-query): query multiple tenants in periodic queries

Gregorius Marco requested to merge mg-periodic-query-multiple-tenants into master

fix: feature category mapping and stage groups availability rules

The feature category mapping and stage group availability rules previously only existed in gitlab-gprd tenant. These rules are required to calculate error budgets.

Added a new argument overrideTenants for the separate-mimir-recording-files helper to pass in tenants from the caller instead of following the service's tenant or defaultTenants from the gitlab-metrics-config. This allows us to pass in the stageGroupTenants for the rules above, otherwise they are only generated in gitlab-gprd and gitlab-gstg (from defaultTenants)

feat: query tenants with stage group in error budget periodic queries

We define the tenants having stage group metrics inside the metrics config and use these tenants for error budget periodic queries to query against.

The separateMimirRecordingSelectors object holds the information whether the tenant has stage groups metrics.

feat(periodic-query): query multiple tenants in periodic queries

This adds the support for periodic queries to define multiple tenants for gitlab-com/gl-infra/scalability#3611 (closed). Currently only 1 tenant per periodic query is supported.

This was missed out previously since error budget queries could span across multiple tenants, ie gitlab-gprd, runway, fulfillment-platform.

Merge request reports