Skip to content

[YUNIKORN-3087] Remove deprecated "subsystem metrics" code#1023

Closed
BarryWu0812 wants to merge 1 commit into
apache:masterfrom
BarryWu0812:master
Closed

[YUNIKORN-3087] Remove deprecated "subsystem metrics" code#1023
BarryWu0812 wants to merge 1 commit into
apache:masterfrom
BarryWu0812:master

Conversation

@BarryWu0812

Copy link
Copy Markdown

What is this PR for?

Removal of the deprecated "subsystem metrics" code:
https://yunikorn.apache.org/docs/1.5.0/metrics/queue

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-3087

How should this be tested?

Unit Test:

image

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

@wilfred-s

Copy link
Copy Markdown
Contributor

Kicked off the pre-commit checks

@pbacsko

pbacsko commented Jun 10, 2025

Copy link
Copy Markdown
Contributor

@BarryWu0812 please check the formatting by running "make lint" locally.

@BarryWu0812

Copy link
Copy Markdown
Author

Hi @pbacsko , I have fixed the issue.

@codecov

codecov Bot commented Jun 13, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.67%. Comparing base (bf04bd4) to head (e8a98bb).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
pkg/metrics/queue.go 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1023      +/-   ##
==========================================
- Coverage   82.69%   82.67%   -0.02%     
==========================================
  Files          98       98              
  Lines       15682    15658      -24     
==========================================
- Hits        12968    12946      -22     
+ Misses       2439     2437       -2     
  Partials      275      275              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread pkg/metrics/queue.go Outdated
appMetricsLabel *prometheus.GaugeVec
// Deprecated - To be removed in 1.7.0. Replaced with queue label Metrics
appMetricsSubsystem *prometheus.GaugeVec
appMetricsLabel *prometheus.GaugeVec

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.

Nit: now we only have a single metrics for apps, so rename this to appMetrics

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

Comment thread pkg/metrics/queue_test.go Outdated

@pbacsko pbacsko 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.

LGTM

@wilfred-s wilfred-s 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.

LGTM +1
committing the change

@wilfred-s wilfred-s closed this in 1a07ad7 Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants