Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetHistogram (0.59 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/metrics/metrics_test.go

    	if err != nil {
    		t.Fatalf("Failed to gather metrics: %s", err)
    	}
    	for _, mf := range metrics {
    		if mf.GetName() == name {
    			for _, m := range mf.GetMetric() {
    				h := m.GetHistogram()
    				count += h.GetSampleCount()
    				sum += h.GetSampleSum()
    			}
    			return
    		}
    	}
    	t.Fatalf("metric not found: %v", name)
    	return 0, 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/metrics/testutil_test.go

    		if mf.GetName() != name {
    			continue // Ignore other metrics.
    		}
    		for _, metric := range mf.GetMetric() {
    			if !testutil.LabelsMatch(metric, labelFilter) {
    				continue
    			}
    			counterSum += int(metric.GetHistogram().GetSampleCount())
    		}
    	}
    	if wantCount != counterSum {
    		t.Errorf("Wanted count %d, got %d for metric %s with labels %#+v", wantCount, counterSum, name, labelFilter)
    		for _, mf := range metrics {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 24 04:26:43 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

        ids.push_back(op.getId());
        calibration_methods.push_back(op.getCalibrationMethod());
        statistics_outputs.push_back(op.getMin());
        statistics_outputs.push_back(op.getMax());
        statistics_outputs.push_back(op.getHistogram());
      }
    }
    
    // Inserts a `CalibrationStatisticsSaverOp` to the end of the region.
    LogicalResult InsertCalibrationStatisticsSaverOp(
        Region& region, MLIRContext& ctx, absl::string_view output_file_path,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go

    	}
    	for _, mf := range mfs {
    		thisName := mf.GetName()
    		if thisName != metricName {
    			continue
    		}
    		metric := mf.GetMetric()[0]
    		hist := metric.GetHistogram()
    		if hist == nil {
    			return 0, errors.New("dto.Metric has nil Histogram")
    		}
    		if hist.SampleCount == nil {
    			return 0, errors.New("dto.Histogram has nil SampleCount")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 16:03:06 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  5. cmd/metrics-v2.go

    		err := promMetric.Write(dtoMetric)
    		if err != nil {
    			// Log error and continue to receive other metric
    			// values
    			bugLogIf(GlobalContext, err)
    			continue
    		}
    
    		h := dtoMetric.GetHistogram()
    		for _, b := range h.Bucket {
    			labels := make(map[string]string)
    			for _, lp := range dtoMetric.GetLabel() {
    				if *lp.Name == "api" && toLowerAPILabels {
    					labels[*lp.Name] = strings.ToLower(*lp.Value)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  6. cmd/metrics-v3-api.go

    //
    // This is a `MetricsLoaderFn`.
    func loadAPIRequestsTTFBMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    	renameLabels := map[string]string{"api": "name"}
    	m.SetHistogram(apiRequestsTTFBSecondsDistribution, httpRequestsDuration, renameLabels, nil,
    		"type", "s3")
    	return nil
    }
    
    // loadAPIRequestsNetworkMetrics - loads S3 network metrics.
    //
    // This is a `MetricsLoaderFn`.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. cmd/metrics-v3-types.go

    	}
    	// If valid non zero value set the metrics
    	if value > 0 {
    		m.values[name] = append(v, metricValue{
    			Labels: labelMap,
    			Value:  value,
    		})
    	}
    }
    
    // SetHistogram - sets values for the given MetricName using the provided
    // histogram.
    //
    // `renameLabels` is a map of label names to rename. The keys are the original
    // label names and the values are the new label names.
    //
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top