OpenTelemetry SDK
    Preparing search index...

    Variable METRIC_K8S_CONTAINER_RESTART_COUNTConst Experimental

    METRIC_K8S_CONTAINER_RESTART_COUNT: "k8s.container.restart.count" = ...

    Describes how many times the container has restarted (since the last counter reset).

    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.

    This metric is experimental and is subject to breaking changes in minor releases of @opentelemetry/semantic-conventions.