eslam-gomaa / kptop

A Python tool that offers beautiful CLI monitoring based on Prometheus metrics, with Kubernetes integration through PodPortForward
https://eslam-gomaa.github.io/kptop/
GNU General Public License v3.0
277 stars 11 forks source link

Fix KeyError exception with "kptop pods --all-namespaces" #23

Closed eslam-gomaa closed 1 year ago

eslam-gomaa commented 1 year ago

This may happen when Prometheus is starting and some of the metrics are not returning data yet. (For now we're caching Exceptions in case faced it again.)