-
[OPIK-6411] [BE] feat: expose MIGRATION_EXCLUDED_WORKSPACE_IDS size as a metric (#6647)
发布于
2026-05-11 10:47:47 +00:00 Add a sibling gauge to the existing
cycle.trapped_workspacesso the
Grafana migration dashboard can show both exclusion paths side by side
without operators having to inspect the configmap to learn how many
workspaces are excluded by env var.New metric:
opik.migration.experiment_project.cycle.env_excluded_workspaces
(LongGauge) — set once per cycle from
migrationConfig.getExcludedWorkspaceIds().size().
The existing post-filter
cycle.eligible_workspaceshistogram already
captures what the migration actually processes; combined with this
gauge and the trapped gauge, the dashboard can now answer "of the
SQL-eligible set, how many are env-excluded vs trapped" without an
ad-hoc ClickHouse query.Cycle log line is also extended to include the env-excluded count
alongside the trapped count for parity in pod logs.下载附件