Skip to content

Commit 393430e

Browse files
fix the description of the 'kube_pod_container_status_last_terminated_timestamp' metric
Signed-off-by: Tetiana Kravchenko <[email protected]>
1 parent dbdb77c commit 393430e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/pod-metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| kube_pod_container_status_terminated_reason | Gauge | Describes the reason the container is currently in terminated state | | `container`=&lt;container-name&gt; <br> `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `reason`=&lt;container-terminated-reason&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL | - |
2424
| kube_pod_container_status_last_terminated_reason | Gauge | Describes the last reason the container was in terminated state | | `container`=&lt;container-name&gt; <br> `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `reason`=&lt;last-terminated-reason&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL | - |
2525
| kube_pod_container_status_last_terminated_exitcode | Gauge | Describes the exit code for the last container in terminated state. | | `container`=&lt;container-name&gt; <br> `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL | - |
26-
| kube_pod_container_status_last_terminated_timestamp | Gauge | Last terminated time for a pod container, when container was terminated with kube_pod_container_status_last_terminated_reason, in unix timestamp. | | `container`=&lt;container-name&gt; <br> `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL | - |
26+
| kube_pod_container_status_last_terminated_timestamp | Gauge | Last terminated time for a pod container in unix timestamp. | | `container`=&lt;container-name&gt; <br> `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL | - |
2727
| kube_pod_container_status_ready | Gauge | Describes whether the containers readiness check succeeded | | `container`=&lt;container-name&gt; <br> `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `uid`=&lt;pod-uid&gt; | STABLE | - |
2828
| kube_pod_status_initialized_time | Gauge | Time when the pod is initialized. | seconds | `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL |
2929
| kube_pod_status_ready_time | Gauge | Time when pod passed readiness probes. | seconds | `pod`=&lt;pod-name&gt; <br> `namespace`=&lt;pod-namespace&gt; <br> `uid`=&lt;pod-uid&gt; | EXPERIMENTAL |

internal/store/pod.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func createPodContainerStatusLastTerminatedExitCodeFamilyGenerator() generator.F
379379
func createPodContainerStatusLastTerminatedTimestampFamilyGenerator() generator.FamilyGenerator {
380380
return *generator.NewFamilyGeneratorWithStability(
381381
"kube_pod_container_status_last_terminated_timestamp",
382-
"Last terminated time for a pod container, when container was terminated with kube_pod_container_status_last_terminated_reason, in unix timestamp.",
382+
"Last terminated time for a pod container in unix timestamp.",
383383
metric.Gauge,
384384
basemetrics.ALPHA,
385385
"",

internal/store/pod_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ func TestPodStore(t *testing.T) {
731731
Want: `
732732
# HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state.
733733
# HELP kube_pod_container_status_last_terminated_exitcode Describes the exit code for the last container in terminated state.
734-
# HELP kube_pod_container_status_last_terminated_timestamp Last terminated time for a pod container, when container was terminated with kube_pod_container_status_last_terminated_reason, in unix timestamp.
734+
# HELP kube_pod_container_status_last_terminated_timestamp Last terminated time for a pod container in unix timestamp.
735735
# HELP kube_pod_container_status_running [STABLE] Describes whether the container is currently in running state.
736736
# HELP kube_pod_container_status_terminated [STABLE] Describes whether the container is currently in terminated state.
737737
# HELP kube_pod_container_status_terminated_reason Describes the reason the container is currently in terminated state.
@@ -808,7 +808,7 @@ func TestPodStore(t *testing.T) {
808808
Want: `
809809
# HELP kube_pod_container_status_last_terminated_exitcode Describes the exit code for the last container in terminated state.
810810
# HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state.
811-
# HELP kube_pod_container_status_last_terminated_timestamp Last terminated time for a pod container, when container was terminated with kube_pod_container_status_last_terminated_reason, in unix timestamp.
811+
# HELP kube_pod_container_status_last_terminated_timestamp Last terminated time for a pod container in unix timestamp.
812812
# HELP kube_pod_container_status_running [STABLE] Describes whether the container is currently in running state.
813813
# HELP kube_pod_container_state_started [STABLE] Start time in unix timestamp for a pod container.
814814
# HELP kube_pod_container_status_terminated [STABLE] Describes whether the container is currently in terminated state.

pkg/app/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func TestFullScrapeCycle(t *testing.T) {
209209
# HELP kube_pod_container_state_started [STABLE] Start time in unix timestamp for a pod container.
210210
# HELP kube_pod_container_status_last_terminated_exitcode Describes the exit code for the last container in terminated state.
211211
# HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state.
212-
# HELP kube_pod_container_status_last_terminated_timestamp Last terminated time for a pod container, when container was terminated with kube_pod_container_status_last_terminated_reason, in unix timestamp.
212+
# HELP kube_pod_container_status_last_terminated_timestamp Last terminated time for a pod container in unix timestamp.
213213
# HELP kube_pod_container_status_ready [STABLE] Describes whether the containers readiness check succeeded.
214214
# HELP kube_pod_container_status_restarts_total [STABLE] The number of container restarts per container.
215215
# HELP kube_pod_container_status_running [STABLE] Describes whether the container is currently in running state.

0 commit comments

Comments
 (0)