-
Notifications
You must be signed in to change notification settings - Fork 283
feat: add additional labels to the existing scheduler_attempts_total metric #2545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
k8s-ci-robot
merged 8 commits into
kubernetes-sigs:main
from
lionelvillard:metric_replica_info
Mar 14, 2026
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7d92cd1
Add selected endpoint info to SchedulerAttemptsTotal metric
lionelvillard 7fc2c2b
add model_name label to scheduler_attempts_total
lionelvillard 382cda8
add unit tests
lionelvillard 25d7153
document metric
lionelvillard b12155f
fix typo
lionelvillard cfbc177
check primaryResults
lionelvillard 7e0b811
add targetModelName even when attempt failed
lionelvillard 1744439
fix golden file
lionelvillard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
pkg/epp/metrics/testdata/scheduler_attempts_different_models_metrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # HELP inference_extension_scheduler_attempts_total [ALPHA] Total number of scheduling attempts. | ||
| # TYPE inference_extension_scheduler_attempts_total counter | ||
| inference_extension_scheduler_attempts_total{namespace="ns-1",pod_name="pod-1",port="8080",status="success",target_model_name="modelA"} 2 | ||
| inference_extension_scheduler_attempts_total{namespace="ns-2",pod_name="pod-2",port="9090",status="success",target_model_name="modelB"} 1 |
4 changes: 4 additions & 0 deletions
4
pkg/epp/metrics/testdata/scheduler_attempts_multiple_endpoints_metrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # HELP inference_extension_scheduler_attempts_total [ALPHA] Total number of scheduling attempts. | ||
| # TYPE inference_extension_scheduler_attempts_total counter | ||
| inference_extension_scheduler_attempts_total{namespace="ns-1",pod_name="pod-1",port="8080",status="success",target_model_name="modelA"} 1 | ||
| inference_extension_scheduler_attempts_total{namespace="ns-1",pod_name="pod-1",port="8080",status="success",target_model_name="modelB"} 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # HELP inference_extension_scheduler_attempts_total [ALPHA] Total number of scheduling attempts. | ||
| # TYPE inference_extension_scheduler_attempts_total counter | ||
| inference_extension_scheduler_attempts_total{status="failure"} 5 | ||
| inference_extension_scheduler_attempts_total{status="success"} 10 | ||
| inference_extension_scheduler_attempts_total{namespace="",pod_name="",port="",status="failure",target_model_name=""} 5 | ||
| inference_extension_scheduler_attempts_total{namespace="",pod_name="",port="",status="success",target_model_name="modelA"} 10 |
3 changes: 3 additions & 0 deletions
3
pkg/epp/metrics/testdata/scheduler_attempts_with_result_metrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # HELP inference_extension_scheduler_attempts_total [ALPHA] Total number of scheduling attempts. | ||
| # TYPE inference_extension_scheduler_attempts_total counter | ||
| inference_extension_scheduler_attempts_total{namespace="ns-1",pod_name="pod-1",port="8080",status="success",target_model_name="modelA"} 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.