Documentation
¶
Index ¶
- type ClaimRecorder
- type ResourcePoolRecorder
- func (r *ResourcePoolRecorder) CalculateExhaustions(pool *capsulev1beta2.ResourcePool, ...)
- 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
- func (r *TenantRecorder) Collectors() []prometheus.Collector
- func (r *TenantRecorder) DeleteAllMetricsForNamespace(namespace string)
- func (r *TenantRecorder) DeleteAllMetricsForTenant(tenant string)
- func (r *TenantRecorder) DeleteNamespaceRelationshipMetrics(namespace string)
- func (r *TenantRecorder) DeleteTenantConditionMetricByType(tenant string, condition string)
- func (r *TenantRecorder) DeleteTenantConditionMetrics(tenant string)
- func (r *TenantRecorder) DeleteTenantNamespaceConditionMetricByType(namespace string, condition string)
- func (r *TenantRecorder) DeleteTenantNamespaceConditionMetrics(namespace string)
- func (r *TenantRecorder) DeleteTenantResourceMetrics(tenant string)
- func (r *TenantRecorder) DeleteTenantStatusMetrics(tenant string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimRecorder ¶
type ClaimRecorder struct {
// contains filtered or unexported fields
}
func MustMakeClaimRecorder ¶
func MustMakeClaimRecorder() *ClaimRecorder
func NewClaimRecorder ¶
func NewClaimRecorder() *ClaimRecorder
func (*ClaimRecorder) Collectors ¶
func (r *ClaimRecorder) Collectors() []prometheus.Collector
func (*ClaimRecorder) DeleteClaimMetric ¶
func (r *ClaimRecorder) DeleteClaimMetric(claim string, namespace string)
DeleteCondition deletes the condition metrics for the ref.
func (*ClaimRecorder) RecordClaimCondition ¶
func (r *ClaimRecorder) RecordClaimCondition(claim *capsulev1beta2.ResourcePoolClaim)
RecordCondition records the condition as given for the ref.
type ResourcePoolRecorder ¶
type ResourcePoolRecorder struct {
// contains filtered or unexported fields
}
func MustMakeResourcePoolRecorder ¶
func MustMakeResourcePoolRecorder() *ResourcePoolRecorder
func NewResourcePoolRecorder ¶
func NewResourcePoolRecorder() *ResourcePoolRecorder
func (*ResourcePoolRecorder) CalculateExhaustions ¶
func (r *ResourcePoolRecorder) CalculateExhaustions( pool *capsulev1beta2.ResourcePool, current map[string]api.PoolExhaustionResource, )
Emit exhaustion metrics.
func (*ResourcePoolRecorder) Collectors ¶
func (r *ResourcePoolRecorder) Collectors() []prometheus.Collector
func (*ResourcePoolRecorder) DeleteResourcePoolMetric ¶
func (r *ResourcePoolRecorder) DeleteResourcePoolMetric(pool string)
Delete all metrics for a resource pool.
func (*ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric ¶
func (r *ResourcePoolRecorder) DeleteResourcePoolNamespaceMetric(pool string, namespace string)
Delete all metrics for a namespace in a resource pool.
func (*ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric ¶
func (r *ResourcePoolRecorder) DeleteResourcePoolSingleResourceMetric(pool string, resourceName string)
func (*ResourcePoolRecorder) ResourceUsageMetrics ¶
func (r *ResourcePoolRecorder) ResourceUsageMetrics(pool *capsulev1beta2.ResourcePool)
Emit current hard limits and usage for a resource pool.
type TenantRecorder ¶
type TenantRecorder struct {
TenantNamespaceRelationshipGauge *prometheus.GaugeVec
TenantNamespaceConditionGauge *prometheus.GaugeVec
TenantConditionGauge *prometheus.GaugeVec
TenantNamespaceCounterGauge *prometheus.GaugeVec
TenantResourceUsageGauge *prometheus.GaugeVec
TenantResourceLimitGauge *prometheus.GaugeVec
}
func MustMakeTenantRecorder ¶
func MustMakeTenantRecorder() *TenantRecorder
func NewTenantRecorder ¶
func NewTenantRecorder() *TenantRecorder
func (*TenantRecorder) Collectors ¶
func (r *TenantRecorder) Collectors() []prometheus.Collector
func (*TenantRecorder) DeleteAllMetricsForNamespace ¶
func (r *TenantRecorder) DeleteAllMetricsForNamespace(namespace string)
func (*TenantRecorder) DeleteAllMetricsForTenant ¶
func (r *TenantRecorder) DeleteAllMetricsForTenant(tenant string)
func (*TenantRecorder) DeleteNamespaceRelationshipMetrics ¶
func (r *TenantRecorder) DeleteNamespaceRelationshipMetrics(namespace string)
DeleteCondition deletes the condition metrics for the ref.
func (*TenantRecorder) DeleteTenantConditionMetricByType ¶
func (r *TenantRecorder) DeleteTenantConditionMetricByType(tenant string, condition string)
func (*TenantRecorder) DeleteTenantConditionMetrics ¶
func (r *TenantRecorder) DeleteTenantConditionMetrics(tenant string)
func (*TenantRecorder) DeleteTenantNamespaceConditionMetricByType ¶
func (r *TenantRecorder) DeleteTenantNamespaceConditionMetricByType(namespace string, condition string)
func (*TenantRecorder) DeleteTenantNamespaceConditionMetrics ¶
func (r *TenantRecorder) DeleteTenantNamespaceConditionMetrics(namespace string)
func (*TenantRecorder) DeleteTenantResourceMetrics ¶
func (r *TenantRecorder) DeleteTenantResourceMetrics(tenant string)
DeleteCondition deletes the condition metrics for the ref.
func (*TenantRecorder) DeleteTenantStatusMetrics ¶
func (r *TenantRecorder) DeleteTenantStatusMetrics(tenant string)
DeleteCondition deletes the condition metrics for the ref.
Click to show internal directories.
Click to hide internal directories.