Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 192 for cedric (0.16 sec)

  1. cmd/metrics-resource.go

    	}
    
    	key := getResourceKey(name, labels)
    	metric, found := subsysMetrics[key]
    	if !found {
    		metric = ResourceMetric{
    			Name:   name,
    			Labels: labels,
    		}
    	}
    
    	if isCumulative {
    		metric.Current = val - metric.Cumulative
    		metric.Cumulative = val
    	} else {
    		metric.Current = val
    	}
    
    	if metric.Current > metric.Max {
    		metric.Max = val
    	}
    
    	metric.Sum += metric.Current
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 15:15:13 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. security/pkg/server/ca/monitoring.go

    type monitoringMetrics struct {
    	CSR               monitoring.Metric
    	AuthnError        monitoring.Metric
    	Success           monitoring.Metric
    	CSRError          monitoring.Metric
    	IDExtractionError monitoring.Metric
    	certSignErrors    monitoring.Metric
    }
    
    // newMonitoringMetrics creates a new monitoringMetrics.
    func newMonitoringMetrics() monitoringMetrics {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:09 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. pkg/apis/autoscaling/validation/validation.go

    	allErrs = append(allErrs, validateMetricIdentifier(src.Metric, fldPath.Child("metric"))...)
    	allErrs = append(allErrs, validateMetricTarget(src.Target, fldPath.Child("target"))...)
    
    	if src.Target.Value == nil && src.Target.AverageValue == nil {
    		allErrs = append(allErrs, field.Required(fldPath.Child("target").Child("averageValue"), "must set either a target value for metric or a per-pod target"))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pkg/controller/podautoscaler/horizontal.go

    		}
    		*status = autoscalingv2.MetricStatus{
    			Type: autoscalingv2.ObjectMetricSourceType,
    			Object: &autoscalingv2.ObjectMetricStatus{
    				Metric: autoscalingv2.MetricIdentifier{
    					Name:     metricSpec.Object.Metric.Name,
    					Selector: metricSpec.Object.Metric.Selector,
    				},
    				Current: autoscalingv2.MetricValueStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  5. pkg/apis/autoscaling/validation/validation_test.go

    					Pods: &autoscaling.PodsMetricSource{
    						Metric: autoscaling.MetricIdentifier{},
    						Target: autoscaling.MetricTarget{
    							Type:         autoscaling.ValueMetricType,
    							AverageValue: resource.NewMilliQuantity(100, resource.DecimalSI),
    						},
    					},
    				}},
    			},
    		},
    		msg: "must specify a metric name",
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.30.0/autoscaling.v2.HorizontalPodAutoscaler.yaml

      - containerResource:
          container: containerValue
          name: nameValue
          target:
            averageUtilization: 4
            averageValue: "0"
            type: typeValue
            value: "0"
        external:
          metric:
            name: nameValue
            selector:
              matchExpressions:
              - key: keyValue
                operator: operatorValue
                values:
                - valuesValue
              matchLabels:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. tests/integration/telemetry/api/stats_test.go

    			for _, metric := range metrics {
    				t.NewSubTestf(metric).Run(func(t framework.TestContext) {
    					t.Cleanup(func() {
    						if t.Failed() {
    							util.PromDump(t.Clusters().Default(), promInst, prometheus.Query{Metric: metric})
    						}
    						grpcSourceQuery := buildGRPCQuery(metric)
    						cluster := t.Clusters().Default()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. src/runtime/metrics/doc.go

    Each metric key also has a "kind" (see [ValueKind]) that describes the format of the
    metric's value.
    In the interest of not breaking users of this package, the "kind" for a given metric
    is guaranteed not to change. If it must change, then a new metric will be introduced
    with a new key and a new "kind."
    
    # Metric key format
    
    As mentioned earlier, metric keys are strings. Their format is simple and well-defined,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  9. pkg/proxy/util/nfacct/nfacct_linux_test.go

    		err          error
    		netlinkCalls int
    	}{
    		{
    			name:        "valid",
    			counterName: "metric-1",
    			handler:     &fakeHandler{},
    			// expected calls: NFNL_MSG_ACCT_NEW
    			netlinkCalls: 1,
    		},
    		{
    			name:        "add duplicate counter",
    			counterName: "metric-2",
    			handler: &fakeHandler{
    				errs: []error{syscall.EBUSY},
    			},
    			err: ErrObjectAlreadyExists,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  10. cmd/metrics-v2.go

    		})
    		return metrics
    	})
    	return mg
    }
    
    func collectMetric(metric MetricV2, labels []string, values []string, metricName string, out chan<- prometheus.Metric) {
    	if metric.Description.Type == histogramMetric {
    		if metric.Histogram == nil {
    			return
    		}
    		for k, v := range metric.Histogram {
    			pmetric, err := prometheus.NewConstMetric(
    				prometheus.NewDesc(
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top