mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
order the output for stable metrics since we're supporting more than just stable now
Change-Id: Idd16bffa058981cb7616dca8aea7966ae689de13
This commit is contained in:
parent
b87802bcd7
commit
a6dec62be5
@ -53,6 +53,11 @@ type byFQName []metric
|
|||||||
|
|
||||||
func (ms byFQName) Len() int { return len(ms) }
|
func (ms byFQName) Len() int { return len(ms) }
|
||||||
func (ms byFQName) Less(i, j int) bool {
|
func (ms byFQName) Less(i, j int) bool {
|
||||||
|
if ms[i].StabilityLevel < ms[j].StabilityLevel {
|
||||||
|
return true
|
||||||
|
} else if ms[i].StabilityLevel > ms[j].StabilityLevel {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return ms[i].buildFQName() < ms[j].buildFQName()
|
return ms[i].buildFQName() < ms[j].buildFQName()
|
||||||
}
|
}
|
||||||
func (ms byFQName) Swap(i, j int) {
|
func (ms byFQName) Swap(i, j int) {
|
||||||
|
@ -469,7 +469,7 @@ var (
|
|||||||
Subsystem: KubeletSubsystem,
|
Subsystem: KubeletSubsystem,
|
||||||
Name: RunningContainersKey,
|
Name: RunningContainersKey,
|
||||||
Help: "Number of containers currently running",
|
Help: "Number of containers currently running",
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.BETA,
|
||||||
},
|
},
|
||||||
[]string{"container_state"},
|
[]string{"container_state"},
|
||||||
)
|
)
|
||||||
|
@ -39,14 +39,13 @@
|
|||||||
type: Summary
|
type: Summary
|
||||||
stabilityLevel: BETA
|
stabilityLevel: BETA
|
||||||
maxAge: 120000000000
|
maxAge: 120000000000
|
||||||
- name: multiline
|
- name: running_containers
|
||||||
subsystem: kubelet
|
subsystem: kubelet
|
||||||
help: Cumulative number of pod preemptions by preemption resource asdf asdf asdf
|
help: Number of containers currently running
|
||||||
asdfas dfasdf
|
type: Gauge
|
||||||
type: Counter
|
stabilityLevel: BETA
|
||||||
stabilityLevel: STABLE
|
|
||||||
labels:
|
labels:
|
||||||
- preemption_signal
|
- container_state
|
||||||
- name: runtime_operations_duration_seconds
|
- name: runtime_operations_duration_seconds
|
||||||
subsystem: kubelet
|
subsystem: kubelet
|
||||||
help: Duration in seconds of runtime operations. Broken down by operation type.
|
help: Duration in seconds of runtime operations. Broken down by operation type.
|
||||||
@ -69,43 +68,6 @@
|
|||||||
- 119.20928955078125
|
- 119.20928955078125
|
||||||
- 298.0232238769531
|
- 298.0232238769531
|
||||||
- 745.0580596923828
|
- 745.0580596923828
|
||||||
- name: summary_metric_test
|
|
||||||
subsystem: kubelet
|
|
||||||
help: Cumulative number of device plugin registrations. Broken down by resource
|
|
||||||
name.
|
|
||||||
type: Summary
|
|
||||||
stabilityLevel: STABLE
|
|
||||||
- name: summary_vec_metric_test
|
|
||||||
subsystem: kubelet
|
|
||||||
help: Duration in seconds to serve a device plugin Allocation request. Broken down
|
|
||||||
by resource name.
|
|
||||||
type: Summary
|
|
||||||
stabilityLevel: STABLE
|
|
||||||
labels:
|
|
||||||
- resource_name
|
|
||||||
objectives:
|
|
||||||
0.5: 0.5
|
|
||||||
0.75: 0.75
|
|
||||||
ageBuckets: 5
|
|
||||||
bufCap: 500
|
|
||||||
maxAge: 600000000000
|
|
||||||
- name: test_histogram_metric
|
|
||||||
subsystem: kubelet
|
|
||||||
help: Interval in seconds between relisting in PLEG.
|
|
||||||
type: Histogram
|
|
||||||
stabilityLevel: STABLE
|
|
||||||
buckets:
|
|
||||||
- 0.005
|
|
||||||
- 0.01
|
|
||||||
- 0.025
|
|
||||||
- 0.05
|
|
||||||
- 0.1
|
|
||||||
- 0.25
|
|
||||||
- 0.5
|
|
||||||
- 1
|
|
||||||
- 2.5
|
|
||||||
- 5
|
|
||||||
- 10
|
|
||||||
- name: priority_level_seat_utilization
|
- name: priority_level_seat_utilization
|
||||||
subsystem: subsystem
|
subsystem: subsystem
|
||||||
namespace: namespace
|
namespace: namespace
|
||||||
@ -157,3 +119,48 @@
|
|||||||
constLabels:
|
constLabels:
|
||||||
phase: blah
|
phase: blah
|
||||||
somestring: executing
|
somestring: executing
|
||||||
|
- 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: summary_metric_test
|
||||||
|
subsystem: kubelet
|
||||||
|
help: Cumulative number of device plugin registrations. Broken down by resource
|
||||||
|
name.
|
||||||
|
type: Summary
|
||||||
|
stabilityLevel: STABLE
|
||||||
|
- name: summary_vec_metric_test
|
||||||
|
subsystem: kubelet
|
||||||
|
help: Duration in seconds to serve a device plugin Allocation request. Broken down
|
||||||
|
by resource name.
|
||||||
|
type: Summary
|
||||||
|
stabilityLevel: STABLE
|
||||||
|
labels:
|
||||||
|
- resource_name
|
||||||
|
objectives:
|
||||||
|
0.5: 0.5
|
||||||
|
0.75: 0.75
|
||||||
|
ageBuckets: 5
|
||||||
|
bufCap: 500
|
||||||
|
maxAge: 600000000000
|
||||||
|
- name: test_histogram_metric
|
||||||
|
subsystem: kubelet
|
||||||
|
help: Interval in seconds between relisting in PLEG.
|
||||||
|
type: Histogram
|
||||||
|
stabilityLevel: STABLE
|
||||||
|
buckets:
|
||||||
|
- 0.005
|
||||||
|
- 0.01
|
||||||
|
- 0.025
|
||||||
|
- 0.05
|
||||||
|
- 0.1
|
||||||
|
- 0.25
|
||||||
|
- 0.5
|
||||||
|
- 1
|
||||||
|
- 2.5
|
||||||
|
- 5
|
||||||
|
- 10
|
||||||
|
Loading…
Reference in New Issue
Block a user