feat: improve resourcepool monitoring (#1488)

* feat(resourcepools): add improved metrics

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* feat(helm): add resourcepool dashboard

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

---------

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
Oliver Bähler
2025-06-03 14:10:42 +02:00
committed by GitHub
parent d3b435c353
commit c8377d51f1
19 changed files with 2037 additions and 164 deletions

View File

@@ -24,6 +24,8 @@ type ResourcePoolStatus struct {
Claims ResourcePoolNamespaceClaimsStatus `json:"claims,omitempty"`
// Tracks the Usage from Claimed against what has been granted from the pool
Allocation ResourcePoolQuotaStatus `json:"allocation,omitempty"`
// Exhaustions from claims associated with the pool
Exhaustions map[string]api.PoolExhaustionResource `json:"exhaustions,omitempty"`
}
type ResourcePoolNamespaceClaimsStatus map[string]ResourcePoolClaimsList

View File

@@ -887,6 +887,13 @@ func (in *ResourcePoolStatus) DeepCopyInto(out *ResourcePoolStatus) {
}
}
in.Allocation.DeepCopyInto(&out.Allocation)
if in.Exhaustions != nil {
in, out := &in.Exhaustions, &out.Exhaustions
*out = make(map[string]api.PoolExhaustionResource, len(*in))
for key, val := range *in {
(*out)[key] = *val.DeepCopy()
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePoolStatus.