Documentation
¶
Index ¶
- type ClaimRecorder
- type ResourcePoolRecorder
- func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector
- func (r *ResourcePoolRecorder) DeleteResourcePoolMetric(pool string)
- func (r *ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric(pool string, namespace string)
- func (r *ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric(pool string, resourceName string)
- func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.ResourcePool)
- type TenantRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimRecorder ¶ added in v0.10.0
type ClaimRecorder struct {
// contains filtered or unexported fields
}
func MustMakeClaimRecorder ¶ added in v0.10.0
func MustMakeClaimRecorder() *ClaimRecorder
func NewClaimRecorder ¶ added in v0.10.0
func NewClaimRecorder() *ClaimRecorder
func (*ClaimRecorder) Collectors ¶ added in v0.10.0
func (r *ClaimRecorder) Collectors() []prometheus.Collector
func (*ClaimRecorder) DeleteClaimMetric ¶ added in v0.10.0
func (r *ClaimRecorder) DeleteClaimMetric(claim string)
DeleteCondition deletes the condition metrics for the ref.
func (*ClaimRecorder) RecordClaimCondition ¶ added in v0.10.0
func (r *ClaimRecorder) RecordClaimCondition(claim *capsulev1beta2.ResourcePoolClaim)
RecordCondition records the condition as given for the ref.
type ResourcePoolRecorder ¶ added in v0.10.0
type ResourcePoolRecorder struct {
// contains filtered or unexported fields
}
func MustMakeResourcePoolRecorder ¶ added in v0.10.0
func MustMakeResourcePoolRecorder() *ResourcePoolRecorder
func NewResourcePoolRecorder ¶ added in v0.10.0
func NewResourcePoolRecorder() *ResourcePoolRecorder
func (*ResourcePoolRecorder) Collectors ¶ added in v0.10.0
func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector
func (*ResourcePoolRecorder) DeleteResourcePoolMetric ¶ added in v0.10.0
func (r *ResourcePoolRecorder) DeleteResourcePoolMetric(pool string)
Delete all metrics for a resource pool.
func (*ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric ¶ added in v0.10.0
func (r *ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric(pool string, namespace string)
Delete all metrics for a namespace in a resource pool.
func (*ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric ¶ added in v0.10.0
func (r *ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric(pool string, resourceName string)
func (*ResourcePoolRecorder) ResourceUsageMetrics ¶ added in v0.10.0
func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.ResourcePool)
Emit current hard limits and usage for a resource pool.
type TenantRecorder ¶ added in v0.10.0
type TenantRecorder struct {
TenantResourceUsageGauge *prometheus.GaugeVec
TenantResourceLimitGauge *prometheus.GaugeVec
}
func MustMakeTenantRecorder ¶ added in v0.10.0
func MustMakeTenantRecorder() *TenantRecorder
func NewTenantRecorder ¶ added in v0.10.0
func NewTenantRecorder() *TenantRecorder
func (*TenantRecorder) Collectors ¶ added in v0.10.0
func (r *TenantRecorder) Collectors() []prometheus.Collector
func (*TenantRecorder) DeleteTenantMetric ¶ added in v0.10.0
func (r *TenantRecorder) DeleteTenantMetric(tenant string)
DeleteCondition deletes the condition metrics for the ref.
Click to show internal directories.
Click to hide internal directories.