mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
update capabilities of static analysis parser
Change-Id: Ie09399981fcef213e0e7c7d12a8039aedbf0246a
This commit is contained in:
@@ -65,6 +65,8 @@ const (
|
||||
|
||||
var (
|
||||
defObjectives = map[float64]float64{0.5: 0.5, 0.75: 0.75}
|
||||
testBuckets = []float64{0, 0.5, 1.0}
|
||||
testLabels = []string{"a", "b", "c"}
|
||||
// NodeName is a Gauge that tracks the ode's name. The count is always 1.
|
||||
NodeName = metrics.NewGaugeVec(
|
||||
&metrics.GaugeOpts{
|
||||
@@ -81,7 +83,7 @@ var (
|
||||
Subsystem: KubeletSubsystem,
|
||||
Name: "containers_per_pod_count",
|
||||
Help: "The number of containers per pod.",
|
||||
Buckets: metrics.ExponentialBuckets(1, 2, 5),
|
||||
Buckets: testBuckets,
|
||||
StabilityLevel: metrics.ALPHA,
|
||||
},
|
||||
)
|
||||
@@ -95,7 +97,7 @@ var (
|
||||
Buckets: metrics.DefBuckets,
|
||||
StabilityLevel: metrics.ALPHA,
|
||||
},
|
||||
[]string{"operation_type"},
|
||||
testLabels,
|
||||
)
|
||||
// PodStartDuration is a Histogram that tracks the duration (in seconds) it takes for a single pod to go from pending to running.
|
||||
PodStartDuration = metrics.NewHistogram(
|
||||
@@ -190,7 +192,7 @@ var (
|
||||
Name: RuntimeOperationsDurationKey,
|
||||
Help: "Duration in seconds of runtime operations. Broken down by operation type.",
|
||||
Buckets: metrics.ExponentialBuckets(.005, 2.5, 14),
|
||||
StabilityLevel: metrics.ALPHA,
|
||||
StabilityLevel: metrics.BETA,
|
||||
},
|
||||
[]string{"operation_type"},
|
||||
)
|
||||
@@ -240,6 +242,18 @@ var (
|
||||
},
|
||||
[]string{"preemption_signal"},
|
||||
)
|
||||
// MultiLineHelp tests that we can parse multi-line strings
|
||||
MultiLineHelp = metrics.NewCounterVec(
|
||||
&metrics.CounterOpts{
|
||||
Subsystem: KubeletSubsystem,
|
||||
Name: "multiline",
|
||||
Help: "Cumulative number of pod preemptions by preemption resource " +
|
||||
"asdf asdf asdf " +
|
||||
"asdfas dfasdf",
|
||||
StabilityLevel: metrics.STABLE,
|
||||
},
|
||||
[]string{"preemption_signal"},
|
||||
)
|
||||
// DevicePluginRegistrationCount is a Counter that tracks the cumulative number of device plugin registrations.
|
||||
// Broken down by resource name.
|
||||
DevicePluginRegistrationCount = metrics.NewCounterVec(
|
||||
@@ -259,7 +273,7 @@ var (
|
||||
Name: DevicePluginAllocationDurationKey,
|
||||
Help: "Duration in seconds to serve a device plugin Allocation request. Broken down by resource name.",
|
||||
Buckets: metrics.DefBuckets,
|
||||
StabilityLevel: metrics.ALPHA,
|
||||
StabilityLevel: metrics.BETA,
|
||||
},
|
||||
[]string{"resource_name"},
|
||||
)
|
||||
@@ -445,3 +459,7 @@ func SinceInSeconds(start time.Time) float64 {
|
||||
func SetNodeName(name types.NodeName) {
|
||||
NodeName.WithLabelValues(string(name)).Set(1)
|
||||
}
|
||||
|
||||
func Blah() metrics.ObserverMetric {
|
||||
return EvictionStatsAge.With(metrics.Labels{"plugins": "ASDf"})
|
||||
}
|
||||
|
@@ -1,3 +1,53 @@
|
||||
- name: device_plugin_alloc_duration_seconds
|
||||
subsystem: kubelet
|
||||
help: Duration in seconds to serve a device plugin Allocation request. Broken down
|
||||
by resource name.
|
||||
type: Histogram
|
||||
stabilityLevel: BETA
|
||||
labels:
|
||||
- resource_name
|
||||
buckets:
|
||||
- 0.005
|
||||
- 0.01
|
||||
- 0.025
|
||||
- 0.05
|
||||
- 0.1
|
||||
- 0.25
|
||||
- 0.5
|
||||
- 1
|
||||
- 2.5
|
||||
- 5
|
||||
- 10
|
||||
- name: multiline
|
||||
subsystem: kubelet
|
||||
help: Cumulative number of pod preemptions by preemption resource asdf asdf asdf
|
||||
asdfas dfasdf
|
||||
type: Counter
|
||||
stabilityLevel: STABLE
|
||||
labels:
|
||||
- preemption_signal
|
||||
- name: runtime_operations_duration_seconds
|
||||
subsystem: kubelet
|
||||
help: Duration in seconds of runtime operations. Broken down by operation type.
|
||||
type: Histogram
|
||||
stabilityLevel: BETA
|
||||
labels:
|
||||
- operation_type
|
||||
buckets:
|
||||
- 0.005
|
||||
- 0.0125
|
||||
- 0.03125
|
||||
- 0.078125
|
||||
- 0.1953125
|
||||
- 0.48828125
|
||||
- 1.220703125
|
||||
- 3.0517578125
|
||||
- 7.62939453125
|
||||
- 19.073486328125
|
||||
- 47.6837158203125
|
||||
- 119.20928955078125
|
||||
- 298.0232238769531
|
||||
- 745.0580596923828
|
||||
- name: summary_metric_test
|
||||
subsystem: kubelet
|
||||
help: Cumulative number of device plugin registrations. Broken down by resource
|
||||
|
Reference in New Issue
Block a user