-
Notifications
You must be signed in to change notification settings - Fork 2k
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
metrics: classless blocked evals get metrics #13786
Conversation
95e0a6c
to
720f691
Compare
720f691
to
a409ac0
Compare
Spot check
|
This PR fixes a bug where blocked evaluations with no class set would not have metrics exported at the dc:class scope. Fixes #13759
a409ac0
to
582a8a9
Compare
@@ -89,6 +89,10 @@ func generateResourceStats(eval *structs.Evaluation) *BlockedResourcesStats { | |||
for class := range allocMetrics.ClassExhausted { | |||
classes[class] = struct{}{} | |||
} | |||
if len(allocMetrics.ClassExhausted) == 0 { | |||
// some evaluations have no class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rude 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Seth!
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR fixes a bug where blocked evaluations with no class set would
not have metrics exported at the
dc:class
scope.Fixes #13759
Also drive-by fixup naming of
ByNode
toByClassInDC
which is more accurate 🤦Backport to 1.3.x, 1.2.x