Skip to content

cleanup: remove collector v1 - #560

Merged
lionelvillard merged 1 commit into
llm-d:mainfrom
lionelvillard:metric-cleanup-2
Jan 9, 2026
Merged

cleanup: remove collector v1#560
lionelvillard merged 1 commit into
llm-d:mainfrom
lionelvillard:metric-cleanup-2

Conversation

@lionelvillard

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Lionel Villard <villard@us.ibm.com>
Copilot AI review requested due to automatic review settings January 9, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR performs a comprehensive cleanup by removing the deprecated collector v1 implementation and related code. The changes streamline the codebase by eliminating obsolete components that have been superseded by the v2 collector architecture.

Key Changes

  • Removed entire collector v1 implementation including Prometheus collector, cache, and configuration
  • Deleted deprecated optimizer and model engine v1 code
  • Moved CacheConfig and FreshnessThresholds types from internal/collector/config to internal/config package
  • Removed MetricsCollector interface and related methods from internal/interfaces
  • Cleaned up extensive test suites for deleted components

Reviewed changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/optimizer/suite_test.go Removed test suite for deprecated optimizer v1
internal/optimizer/optimizer_test.go Removed optimizer v1 tests
internal/optimizer/optimizer.go Removed optimizer v1 engine implementation
internal/interfaces/metrics_collector.go Removed MetricsCollector interface (v1)
internal/engines/saturation/engine.go Removed deprecated CollectMetricsForSaturationMode method
internal/engines/model/engine.go Removed placeholder model engine v1
internal/config/prometheus.go Added CacheConfig and FreshnessThresholds types (moved from collector/config)
internal/collector/prometheus/* Removed entire prometheus collector v1 package and tests
internal/collector/config/* Removed config package (types moved to internal/config)
internal/collector/cache/* Removed cache implementation used by v1
internal/collector/factory.go Removed factory for creating v1 collectors
internal/collector/collector.go Removed deprecated functions (ValidateMetricsAvailability, AddMetricsToOptStatus, FixValue)

@asm582

asm582 commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

/lgtm
/approve

@github-actions github-actions Bot added the lgtm Looks good to me, indicates that a PR is ready to be merged. label Jan 9, 2026
@lionelvillard
lionelvillard merged commit 7bf89cb into llm-d:main Jan 9, 2026
13 checks passed
github-actions Bot pushed a commit that referenced this pull request Jan 9, 2026
- Update file paths from internal/capacity to internal/saturation
- Update collector references to use v2 infrastructure
- Fix import paths to use internal/engines/saturation/metrics
- Update API names: AnalyzeModelCapacity -> AnalyzeModelSaturation
- Update API names: CalculateCapacityTargets -> CalculateSaturationTargets
- Add details about v2 collector features (staleness filtering, query templates)
- Update test paths to internal/saturation/analyzer_test.go
- Fix terminology throughout (capacity -> saturation where appropriate)
- Remove outdated note about 0.4.0 alignment

Related to PR #560 (cleanup: remove collector v1)
ev-shindin pushed a commit to ev-shindin/workload-variant-autoscaler that referenced this pull request Jan 14, 2026
@lionelvillard
lionelvillard deleted the metric-cleanup-2 branch June 18, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Looks good to me, indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants