Fix and improve comments on kubelet metrics

This commit is contained in:
Yuan Chen
2021-10-21 13:42:59 -07:00
parent d3350f45e5
commit b99495d1d9
2 changed files with 8 additions and 6 deletions

View File

@@ -132,12 +132,13 @@ var (
},
[]string{"operation_type"},
)
// PodStartDuration is a Histogram that tracks the duration (in seconds) it takes for a single pod to go from pending to running.
// PodStartDuration is a Histogram that tracks the duration (in seconds) it takes for a single pod to run since it's
// first time seen by kubelet.
PodStartDuration = metrics.NewHistogram(
&metrics.HistogramOpts{
Subsystem: KubeletSubsystem,
Name: PodStartDurationKey,
Help: "Duration in seconds for a single pod to go from pending to running.",
Help: "Duration in seconds from kubelet seeing a pod for the first time to the pod starting to run",
Buckets: metrics.DefBuckets,
StabilityLevel: metrics.ALPHA,
},
@@ -154,12 +155,12 @@ var (
},
[]string{"operation_type"},
)
// PodWorkerStartDuration is a Histogram that tracks the duration (in seconds) it takes from seeing a pod to starting a worker.
// PodWorkerStartDuration is a Histogram that tracks the duration (in seconds) it takes from kubelet seeing a pod to starting a worker.
PodWorkerStartDuration = metrics.NewHistogram(
&metrics.HistogramOpts{
Subsystem: KubeletSubsystem,
Name: PodWorkerStartDurationKey,
Help: "Duration in seconds from seeing a pod to starting a worker.",
Help: "Duration in seconds from kubelet seeing a pod to starting a worker.",
Buckets: metrics.DefBuckets,
StabilityLevel: metrics.ALPHA,
},