Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for newCounter (0.28 sec)

  1. pkg/serviceaccount/metrics.go

    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    const kubeServiceAccountSubsystem = "serviceaccount"
    
    var (
    	// LegacyTokensTotal is the number of legacy tokens used against apiserver.
    	legacyTokensTotal = metrics.NewCounter(
    		&metrics.CounterOpts{
    			Subsystem:      kubeServiceAccountSubsystem,
    			Name:           "legacy_tokens_total",
    			Help:           "Cumulative legacy service account tokens used",
    			StabilityLevel: metrics.ALPHA,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/internal/telemetry/telemetry_bootstrap.go

    func Start()                                                              {}
    func StartWithUpload()                                                    {}
    func Inc(name string)                                                     {}
    func NewCounter(name string) dummyCounter                                 { return dummyCounter{} }
    func NewStackCounter(name string, depth int) dummyCounter                 { return dummyCounter{} }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/value/metrics.go

    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"transformation_type", "transformer_prefix", "status"},
    	)
    
    	envelopeTransformationCacheMissTotal = metrics.NewCounter(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "envelope_transformation_cache_misses_total",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 22:44:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. src/cmd/internal/telemetry/telemetry.go

    		TelemetryDir: os.Getenv("TEST_TELEMETRY_DIR"),
    	})
    }
    
    // Inc increments the counter with the given name.
    func Inc(name string) {
    	counter.Inc(name)
    }
    
    // NewCounter returns a counter with the given name.
    func NewCounter(name string) *counter.Counter {
    	return counter.New(name)
    }
    
    // NewStackCounter returns a new stack counter with the given name and depth.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. pkg/registry/core/service/portallocator/controller/metrics.go

    		},
    		[]string{"type"},
    	)
    	// nodePortRepairReconcileErrors indicates the number of times the repair loop has failed to repair
    	// the errors it detected.
    	nodePortRepairReconcileErrors = metrics.NewCounter(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "reconcile_errors_total",
    			Help:           "Number of reconciliation failures on the nodeport repair reconcile loop",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. pkg/controller/tainteviction/metrics/metrics.go

    )
    
    const taintEvictionControllerSubsystem = "taint_eviction_controller"
    
    var (
    	// PodDeletionsTotal counts the number of Pods deleted by TaintEvictionController since its start.
    	PodDeletionsTotal = metrics.NewCounter(
    		&metrics.CounterOpts{
    			Subsystem:      taintEvictionControllerSubsystem,
    			Name:           "pod_deletions_total",
    			Help:           "Total number of Pods deleted by TaintEvictionController since its start.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:23:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. pkg/monitoring/counter.go

    	baseMetric
    	c api.Float64Counter
    	// precomputedAddOption is just a precomputation to avoid allocations on each record call
    	precomputedAddOption []api.AddOption
    }
    
    var _ Metric = &counter{}
    
    func newCounter(o options) *counter {
    	c, err := meter().Float64Counter(o.name,
    		api.WithDescription(o.description),
    		api.WithUnit(string(o.unit)))
    	if err != nil {
    		log.Fatalf("failed to create counter: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/controller/metrics.go

    		},
    		[]string{"type"},
    	)
    	// clusterIPRepairReconcileErrors indicates the number of times the repair loop has failed to repair
    	// the errors it detected.
    	clusterIPRepairReconcileErrors = metrics.NewCounter(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "reconcile_errors_total",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/help/help.go

    import (
    	"bufio"
    	"fmt"
    	"io"
    	"os"
    	"strings"
    	"text/template"
    	"unicode"
    	"unicode/utf8"
    
    	"cmd/go/internal/base"
    	"cmd/internal/telemetry"
    )
    
    var counterErrorsHelpUnknownTopic = telemetry.NewCounter("go/errors:help-unknown-topic")
    
    // Help implements the 'help' command.
    func Help(w io.Writer, args []string) {
    	// 'go help documentation' generates doc.go.
    	if len(args) == 1 && args[0] == "documentation" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/toolchain/switch.go

    	fmt.Fprintf(os.Stderr, "go: %v requires go >= %v; switching to %v\n", s.TooNew.What, s.TooNew.GoVersion, tv)
    	counterSwitchExec.Inc()
    	Exec(tv)
    	panic("unreachable")
    }
    
    var counterSwitchExec = telemetry.NewCounter("go/toolchain/switch-exec")
    
    // SwitchOrFatal attempts a toolchain switch based on the information in err
    // and otherwise falls back to base.Fatal(err).
    func SwitchOrFatal(ctx context.Context, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top