Skip to content
  • Gregorius Marco's avatar
    fix(dashboard): stat panels not loading · ae4dec6f
    Gregorius Marco authored
    Stat panels that show whether apdex/error ratios are healthy in the
    service dashboards are erroring due to not having datasource variable
    passed, so it defaults to using the `Mimir - Gitlab - All Environments`.
    Then, since the SLO rules exist in both gprd and gstg tenants, the
    `group_left` operation couldn't match them.
    
    The solution is to match by `__tenant_id__` in the join statement, eg:
    `(gitlab_service_apdex:ratio_5m{env="gprd",environment="gprd",monitor="global",stage="main",type="api"} < on(tier, type, __tenant_id__) group_left() (1 - (14.4 * (1 - slo:min:events:gitlab_service_apdex:ratio{component="",monitor="global",type="api"}))))`
    ae4dec6f