- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for metric_type (0.51 sec)
-
pkg/controller/podautoscaler/monitor/metrics.go
StabilityLevel: metrics.ALPHA, }, []string{"action", "error", "metric_type"}) metricComputationDuration = metrics.NewHistogramVec( &metrics.HistogramOpts{ Subsystem: hpaControllerSubsystem,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 22:47:24 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/controller/podautoscaler/monitor/monitor.go
func (r *monitor) ObserveMetricComputationResult(action ActionLabel, err ErrorLabel, duration time.Duration, metricType v2.MetricSourceType) { metricComputationTotal.WithLabelValues(string(action), string(err), string(metricType)).Inc() metricComputationDuration.WithLabelValues(string(action), string(err), string(metricType)).Observe(duration.Seconds())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 22:47:24 UTC 2023 - 2.3K bytes - Viewed (0) -
pkg/apis/autoscaling/v2beta1/conversion.go
utilization := in.TargetAverageUtilization averageValue := in.TargetAverageValue var metricType autoscaling.MetricTargetType if utilization == nil { metricType = autoscaling.AverageValueMetricType } else { metricType = autoscaling.UtilizationMetricType } out.Target = autoscaling.MetricTarget{ Type: metricType, AverageValue: averageValue, AverageUtilization: utilization, } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 03 16:28:10 UTC 2021 - 13.4K bytes - Viewed (0) -
pkg/apis/autoscaling/v1/conversion.go
value := in.TargetValue averageValue := in.TargetAverageValue var metricType autoscaling.MetricTargetType if value == nil { metricType = autoscaling.AverageValueMetricType } else { metricType = autoscaling.ValueMetricType } out.Target = autoscaling.MetricTarget{ Type: metricType, Value: value, AverageValue: averageValue, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 16 03:29:22 UTC 2021 - 21.2K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator_test.go
expectedValue int64 } type metricType int const ( objectMetric metricType = iota objectPerPodMetric externalMetric externalPerPodMetric podMetric ) type metricInfo struct { name string levels []int64 singleObject *autoscalingv2.CrossVersionObjectReference selector *metav1.LabelSelector metricType metricType targetUsage int64 perPodTargetUsage int64
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 68.4K bytes - Viewed (0) -
cmd/metrics-v3-types.go
} // MetricType - represents the type of a metric. type MetricType int const ( // CounterMT - represents a counter metric. CounterMT MetricType = iota // GaugeMT - represents a gauge metric. GaugeMT // HistogramMT - represents a histogram metric. HistogramMT // rangeL - represents a range label. rangeL = "range" ) func (mt MetricType) String() string { switch mt {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 23 07:41:18 UTC 2024 - 15.1K bytes - Viewed (0) -
pkg/kubelet/metrics/collectors/cri_metrics.go
klog.V(5).ErrorS(err, "Descriptor not present in pre-populated list of descriptors", "name", m.Name) return nil, err } typ := criTypeToProm[m.MetricType] pm, err := metrics.NewConstMetric(desc, typ, float64(m.GetValue().Value), m.LabelValues...) if err != nil { klog.ErrorS(err, "Error getting CRI prometheus metric", "descriptor", desc.String()) return nil, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 23 13:24:29 UTC 2023 - 4.3K bytes - Viewed (0) -
cmd/metrics-realtime.go
"github.com/shirou/gopsutil/v3/load" ) type collectMetricsOpts struct { hosts map[string]struct{} disks map[string]struct{} jobID string depID string } func collectLocalMetrics(types madmin.MetricType, opts collectMetricsOpts) (m madmin.RealtimeMetrics) { if types == madmin.MetricsNone { return } byHostName := globalMinioAddr if len(opts.hosts) > 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 01 05:16:24 UTC 2024 - 6.3K bytes - Viewed (0) -
cmd/metrics-v3-cache.go
loadDriveMetrics) } func newCPUMetricsCache() *cachevalue.Cache[madmin.CPUMetrics] { loadCPUMetrics := func(ctx context.Context) (v madmin.CPUMetrics, err error) { var types madmin.MetricType = madmin.MetricsCPU m := collectLocalMetrics(types, collectMetricsOpts{ hosts: map[string]struct{}{ globalLocalNodeName: {}, }, }) for _, hm := range m.ByHost {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 8.1K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
} for metricType, l := range tc.expectedReportedMetricComputationActionLabels { _, ok := m.metricComputationActionLabels[metricType] if !ok { t.Fatalf("the metric computation action should be recorded with metricType %s, but actually nothing was recorded", metricType) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0)