Constant K8S_CONTAINER_RESTART_COUNT
pub const K8S_CONTAINER_RESTART_COUNT: &'static str;
Expand description
§Description
Describes how many times the container has restarted (since the last counter reset)
§Notes
This value is pulled directly from the K8s API and the value can go indefinitely high and be reset to 0 at any time depending on how your kubelet is configured to prune dead containers. It is best to not depend too much on the exact value but rather look at it as either == 0, in which case you can conclude there were no restarts in the recent past, or > 0, in which case you can conclude there were restarts in the recent past, and not try and analyze the value beyond that
§Metadata
Instrument: | updowncounter |
Unit: | {restart} |
Status: | Development |