Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for initOperatorCrdResourceMetrics (0.34 sec)

  1. operator/pkg/metrics/resource_counts.go

    type resourceCounts struct {
    	mu        *sync.Mutex
    	resources map[schema.GroupKind]map[string]struct{}
    }
    
    var rc *resourceCounts
    
    func initOperatorCrdResourceMetrics() {
    	rc = &resourceCounts{
    		mu:        &sync.Mutex{},
    		resources: map[schema.GroupKind]map[string]struct{}{},
    	}
    }
    
    // AddResource adds the resource of given kind to the set of owned objects
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 20 18:48:20 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  2. operator/pkg/metrics/monitoring.go

    	// CacheFlushTotal counts number of cache flushes.
    	CacheFlushTotal = monitoring.NewSum(
    		"cache_flush_total",
    		"number of times operator cache was flushed",
    	)
    )
    
    func init() {
    	initOperatorCrdResourceMetrics()
    }
    
    func IncrementReconcileRequest(reason string) {
    	ReconcileRequestTotal.With(ReconcileRequestReasonLabel.Value(reason)).Increment()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top