Im hoping to get a count of restarts using this query:
SELECT sum(restartCount) FROM K8sContainerSample WHERE containerName = “my-awesome-container”
Unfortunately it seems to always return 0 despite the fact that I know that there have been numerous restarts.
The only reliable way of getting the restart count (that I’ve found) seems to be:
SELECT uniqueCount(podName) FROM K8sContainerSample WHERE containerName = “my-unreliable-but-still-awesome-container”